add PROMPT_DIRTRIM=2

This commit is contained in:
fanyx 2023-03-09 10:19:04 +01:00
parent 429430a1ea
commit 958d176334
1 changed files with 2 additions and 0 deletions

2
.ps1
View File

@ -12,6 +12,8 @@ SELECT="if [ \$? = 0 ]; then echo \"${SMILEY}\"; else echo \"${FROWNY}\"; fi"
GIT_BRANCH="$(__git_ps1 ' [%s]')"
export PROMPT_DIRTRIM=2
# actually export PS1
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${YELLOW}\$(__git_ps1 ' [%s]')${NC} \`${SELECT}\` \$ "