diff options
author | Christo Kotze <onaforeignshore@hotmail.co.uk> | 2018-02-18 18:05:37 +0300 |
---|---|---|
committer | Christo Kotze <onaforeignshore@hotmail.co.uk> | 2018-02-18 18:05:37 +0300 |
commit | 9f87bd5654bcf7ed28abdc20109368cf1cc130e4 (patch) | |
tree | 283e07940e5363c87bf2a91c45638fe81f982bf4 /powerlevel9k.zsh-theme | |
parent | 38d7e60ae3f9efd5f4a81d52b5ce6046b0416b8b (diff) |
Added / for non-home folders
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index c0820475..53f115c3 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -732,6 +732,7 @@ prompt_dir() { case "$POWERLEVEL9K_SHORTEN_STRATEGY" in truncate_middle) + [[ $current_path != "~"* ]] && trunc_path='/' || trunc_path='' if (( ${#paths} > 0 )); then # root is an exception and won't have paths local max_length=$(( $POWERLEVEL9K_SHORTEN_DIR_LENGTH * 2 )) # has to be double the length for beginning / end count local last_pos @@ -749,6 +750,7 @@ prompt_dir() { fi ;; truncate_from_right) + [[ $current_path != "~"* ]] && trunc_path='/' || trunc_path='' if (( ${#paths} > 0 )); then # root is an exception and won't have paths for (( i=1; i<${#paths}; i++ )); do test_dir="$paths[$i]" |