summaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorNiklas Heer <niklas.heer@gmail.com>2015-12-31 21:04:26 +0300
committerNiklas Heer <niklas.heer@gmail.com>2015-12-31 21:04:26 +0300
commit3441f750bf114bc68e519d9ab351373b54e83d7c (patch)
treec14ad6b3f9c506d9de544ba7842546307ec688ff /powerlevel9k.zsh-theme
parentf472ba7341615f17b279cc6859535e6e7668f637 (diff)
used set_default-function instead
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme8
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)