From 5f6841163715f8febd9fcf0d586125ec82bb1c4d Mon Sep 17 00:00:00 2001 From: Matt Hamilton Date: Wed, 6 Jan 2016 09:41:40 -0500 Subject: [PATCH] [prompt] gitster: use short_pwd --- modules/prompt/themes/gitster.zsh-theme | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/prompt/themes/gitster.zsh-theme b/modules/prompt/themes/gitster.zsh-theme index 4876cb3..0186ba4 100644 --- a/modules/prompt/themes/gitster.zsh-theme +++ b/modules/prompt/themes/gitster.zsh-theme @@ -15,10 +15,10 @@ function get_pwd(){ done if [[ $git_root = / ]]; then unset git_root - prompt_short_dir=%~ + prompt_short_dir="$(short_pwd)" else parent=${git_root%\/*} - prompt_short_dir=${PWD#$parent/} + prompt_short_dir=${"$(short_pwd)"#$parent/} fi print $prompt_short_dir }