From bc4d1cf6f0d39d4ba05c87b78fd2758d3946e829 Mon Sep 17 00:00:00 2001 From: Marc-Antoine Ruel Date: Mon, 31 Aug 2015 11:12:12 -0400 Subject: Fix $HOME -> ~ substitution regression in fd0b88da. \~ is needed in bash 4.3. --- git-prompt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3