aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme4
1 files changed, 2 insertions, 2 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index fcd1ab98..36a641d8 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -861,8 +861,8 @@ prompt_dir() {
trunc_path+="$test_dir/"
cur_path+="$directory/"
done
- [[ $current_path == "~"* ]] && current_path="~/" || current_path=""
- current_path+="${trunc_path: : -1}"
+ [[ $current_path == "~"* ]] && trunc_path="~/$trunc_path"
+ current_path="${trunc_path: : -1}"
fi
;;
*)