Fixing prompt CWD when in home directory

This commit is contained in:
Paul Gideon Dann 2012-03-13 21:22:37 +00:00
parent f19a52415e
commit 7fba664f79

View file

@ -20,7 +20,7 @@ function prompt_giddie_precmd {
vcs_info
# Replace "/home/<user>" with "~"
prompt_custom_wd=${PWD/$HOME\//\~/}
prompt_custom_wd=${PWD/$HOME/\~}
# Choose prompt symbol based on whether on not we're in a repository.
{ git branch 2>&1 } >/dev/null