summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeonid Volnitsky <leonid@volnitsky.com>2016-01-14 15:38:45 +0200
committerLeonid Volnitsky <leonid@volnitsky.com>2016-01-14 15:38:45 +0200
commit174d67a9506ca48846dde6315b8d72d9c35c81be (patch)
tree8fca4dafbfab55740968a57456a9a6d4341a9369
parentMerge pull request #35 from maruel/fix_localized (diff)
parentFix $HOME -> ~ substitution regression in fd0b88da. (diff)
downloadgit-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-xgit-prompt.sh2
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)