How to set the ash on Alpine Linux to release something like git-prompt.

Asked 1 years ago, Updated 1 years ago, 45 views

The subject line is correct.
I'd like to know how to set up an Alpine Linux ash like git-prompt.

$docker run-it --rm-v${my_git_project_dir}:/app-w/app alpine    
/app# 
$docker run-it --rm-v${my_git_project_dir}:/app-w/app alpine

# $ set something up

[Branch name or change_status]/app# 

git shell

2022-09-30 19:24

1 Answers

I am sorry if you know what you are trying to write below and are asking if you can use ash.
Wouldn't it be better to put bash in the package on Alpine Linux and then use bash as a shell?

With bash and zsh, I think there are many ways to use the __git_ps1 function defined on git-prompt.sh.I think it probably won't work as it is with ash.
It would be nice if git-prompt.sh could be used as an ash, but I searched the internet and found no one doing such a thing.(Maybe it was just a bad way to find it.)

In order to get on with the ecosystem of the development environment using various tools including git these days, I feel that there are many parts that I have no choice but to use bash or zsh.
On the other hand, bash and zsh can easily benefit from the convenient ecosystem created by others.


2022-09-30 19:24

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.