aboutsummaryrefslogtreecommitdiff
path: root/gitstatus.prompt.sh
diff options
context:
space:
mode:
Diffstat (limited to 'gitstatus.prompt.sh')
-rw-r--r--gitstatus.prompt.sh1
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