add PROMPT_DIRTRIM=2
This commit is contained in:
parent
429430a1ea
commit
958d176334
1 changed files with 2 additions and 0 deletions
2
.ps1
2
.ps1
|
@ -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}\` \$ "
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue