diff options
author | Niklas Heer <niklas.heer@gmail.com> | 2015-12-31 21:04:26 +0300 |
---|---|---|
committer | Niklas Heer <niklas.heer@gmail.com> | 2015-12-31 21:04:26 +0300 |
commit | 3441f750bf114bc68e519d9ab351373b54e83d7c (patch) | |
tree | c14ad6b3f9c506d9de544ba7842546307ec688ff /powerlevel9k.zsh-theme | |
parent | f472ba7341615f17b279cc6859535e6e7668f637 (diff) |
used set_default-function instead
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-x | powerlevel9k.zsh-theme | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme index 7f578223..706c198a 100755 --- a/powerlevel9k.zsh-theme +++ b/powerlevel9k.zsh-theme @@ -407,13 +407,7 @@ prompt_dir() { local current_path='%~' if [[ -n "$POWERLEVEL9K_SHORTEN_DIR_LENGTH" ]]; then - if [ -z "$POWERLEVEL9K_SHORTEN_DELIMITER" ] - then - POWERLEVEL9K_SHORTEN_DELIMITER=".." - elif [ "$POWERLEVEL9K_SHORTEN_DELIMITER" = false ] - then - POWERLEVEL9K_SHORTEN_DELIMITER="" - fi + set_default POWERLEVEL9K_SHORTEN_DELIMITER ".." case "$POWERLEVEL9K_SHORTEN_STRATEGY" in truncate_middle) |