add PROMPT_DIRTRIM=2
This commit is contained in:
parent
429430a1ea
commit
958d176334
2
.ps1
2
.ps1
|
@ -12,6 +12,8 @@ SELECT="if [ \$? = 0 ]; then echo \"${SMILEY}\"; else echo \"${FROWNY}\"; fi"
|
||||||
|
|
||||||
GIT_BRANCH="$(__git_ps1 ' [%s]')"
|
GIT_BRANCH="$(__git_ps1 ' [%s]')"
|
||||||
|
|
||||||
|
export PROMPT_DIRTRIM=2
|
||||||
|
|
||||||
# actually export PS1
|
# actually export PS1
|
||||||
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${YELLOW}\$(__git_ps1 ' [%s]')${NC} \`${SELECT}\` \$ "
|
PS1="${GREEN}\u@\h${NC}:${BLUE}\w${YELLOW}\$(__git_ps1 ' [%s]')${NC} \`${SELECT}\` \$ "
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue