diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-08-18 18:05:04 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2021-08-18 18:05:04 +0300 |
commit | 80ec734a953d930838ea6839923c97c3da880a0d (patch) | |
tree | c47aa12434ae72adf40e9add03245ae58b6b697e /gitstatus.prompt.sh | |
parent | 799c22f63b93e9d1ab8f01473bf9ebd2e9750f43 (diff) |
Squashed 'gitstatus/' changes from 845f492f..2ecd9907
2ecd9907 add logging to debug https://github.com/romkatv/powerlevel10k/issues/1477
74010456 add a TODO to fix #254
864f1caf Trim '\w' part of bash prompt. (#253)
git-subtree-dir: gitstatus
git-subtree-split: 2ecd990706255d2000fedbde3b2d2353f63d69a1
Diffstat (limited to 'gitstatus.prompt.sh')
-rw-r--r-- | gitstatus.prompt.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gitstatus.prompt.sh b/gitstatus.prompt.sh index f27bcc39..8ee28de0 100644 --- a/gitstatus.prompt.sh +++ b/gitstatus.prompt.sh @@ -86,6 +86,7 @@ gitstatus_stop && gitstatus_start -s -1 -u -1 -c -1 -d -1 # On every prompt, fetch git status and set GITSTATUS_PROMPT. PROMPT_COMMAND=gitstatus_prompt_update +PROMPT_DIRTRIM=3 # Enable promptvars so that ${GITSTATUS_PROMPT} in PS1 is expanded. shopt -s promptvars |