diff options
author | Marc-Antoine Ruel <maruel@chromium.org> | 2015-08-31 11:12:12 -0400 |
---|---|---|
committer | Marc-Antoine Ruel <maruel@chromium.org> | 2015-08-31 11:12:19 -0400 |
commit | bc4d1cf6f0d39d4ba05c87b78fd2758d3946e829 (patch) | |
tree | 8fca4dafbfab55740968a57456a9a6d4341a9369 /git-prompt.sh | |
parent | Merge pull request #35 from maruel/fix_localized (diff) | |
download | git-prompt-bc4d1cf6f0d39d4ba05c87b78fd2758d3946e829.tar.gz git-prompt-bc4d1cf6f0d39d4ba05c87b78fd2758d3946e829.tar.bz2 git-prompt-bc4d1cf6f0d39d4ba05c87b78fd2758d3946e829.zip |
Fix $HOME -> ~ substitution regression in fd0b88da.
\~ is needed in bash 4.3.
Diffstat (limited to 'git-prompt.sh')
-rwxr-xr-x | git-prompt.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-prompt.sh b/git-prompt.sh index d1e88b3..218c5b8 100755 --- a/git-prompt.sh +++ b/git-prompt.sh @@ -177,7 +177,7 @@ cwd_truncate() { # arg1: max path lenght # returns abbrivated $PWD in public "cwd" var - cwd="${PWD/$HOME/~}" # substitute "~" + cwd="${PWD/$HOME/\~}" # substitute "~" case $1 in full) |