diff options
author | Leonid Volnitsky <leonid@volnitsky.com> | 2016-01-14 15:38:45 +0200 |
---|---|---|
committer | Leonid Volnitsky <leonid@volnitsky.com> | 2016-01-14 15:38:45 +0200 |
commit | 174d67a9506ca48846dde6315b8d72d9c35c81be (patch) | |
tree | 8fca4dafbfab55740968a57456a9a6d4341a9369 | |
parent | Merge pull request #35 from maruel/fix_localized (diff) | |
parent | Fix $HOME -> ~ substitution regression in fd0b88da. (diff) | |
download | git-prompt-174d67a9506ca48846dde6315b8d72d9c35c81be.tar.gz git-prompt-174d67a9506ca48846dde6315b8d72d9c35c81be.tar.bz2 git-prompt-174d67a9506ca48846dde6315b8d72d9c35c81be.zip |
Merge pull request #44 from maruel/fix_home
Fix $HOME -> ~ substitution regression in fd0b88da.
-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) |