From 7fba664f79a4dad08d74f4ef2f6164d500af6b71 Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann Date: Tue, 13 Mar 2012 21:22:37 +0000 Subject: [PATCH] Fixing prompt CWD when in home directory --- themes/giddie/prompt_giddie_setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/giddie/prompt_giddie_setup b/themes/giddie/prompt_giddie_setup index 74cce097..5c62166e 100644 --- a/themes/giddie/prompt_giddie_setup +++ b/themes/giddie/prompt_giddie_setup @@ -20,7 +20,7 @@ function prompt_giddie_precmd { vcs_info # Replace "/home/" 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