aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-08 10:46:24 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-08 10:46:24 +0300
commit6cd22e24e27003181b4b9878a91cc99c6d48eaf1 (patch)
tree44871cf39a55fc7d6a44662ad0df211135ea00d7
parentb7bd643ae688d9e35de4b3fda8aaaade748491bc (diff)
avoid spurious console output where is more more than one dir segment
-rwxr-xr-xinternal/p10k.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 629735c0..c20a1108 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3251,7 +3251,7 @@ function _p9k_set_prompt() {
PROMPT+='${${_p9k_g::=0}+}'
fi
if [[ $_POWERLEVEL9K_DIR_MAX_LENGTH == <->('%'|) ]]; then
- local lim
+ local lim=
if [[ $_POWERLEVEL9K_DIR_MAX_LENGTH[-1] == '%' ]]; then
lim="$_p9k_dir_len-$((0.01*$_POWERLEVEL9K_DIR_MAX_LENGTH[1,-2]))*_p9k_clm"
else