Added a new option BULLETTRAIN_DIR_SHORTEN_GIT_REPO available through prompt_dir that
will displays a shorten prompt dir if the current working directory is within a git repository.
For a prompt_dir of /Users/john/work/project/a where a has a .git folder, the prompt dir when using BULLETTRAIN_DIR_SHORTEN_GIT_REPO would be simply a. For a prompt_dir of /Users/john/work/project/b/nested/deep where b has a .git folder, the prompt dir when using BULLETTRAIN_DIR_SHORTEN_GIT_REPO would be b/nested/deep.
If there is no .git directory within the working directory or its parent, then prompt_dir behaves as before.
Added a new option
BULLETTRAIN_DIR_SHORTEN_GIT_REPO
available throughprompt_dir
that will displays a shorten prompt dir if the current working directory is within a git repository.For a
prompt_dir
of/Users/john/work/project/a
wherea
has a.git
folder, the prompt dir when usingBULLETTRAIN_DIR_SHORTEN_GIT_REPO
would be simplya
. For aprompt_dir
of/Users/john/work/project/b/nested/deep
whereb
has a.git
folder, the prompt dir when usingBULLETTRAIN_DIR_SHORTEN_GIT_REPO
would beb/nested/deep
.If there is no
.git
directory within the working directory or its parent, thenprompt_dir
behaves as before.