From 6dbcdfc752ad336fe0cc69c676f218add7b0e367 Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann Date: Wed, 14 Mar 2012 16:07:04 +0000 Subject: [PATCH] Slight performance tweak to giddie theme --- 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 75547011..07b7d51d 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