mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-12-12 19:18:28 +02:00
Accidentally deleted )) which threw an error
This commit is contained in:
parent
ad4b284e56
commit
29620f3d81
@ -758,7 +758,7 @@ prompt_dir() {
|
||||
for directory in ${paths[@]}
|
||||
do
|
||||
cur_dir=$directory
|
||||
if (( ${#cur_dir} > $POWERLEVEL9K_SHORTEN_DIR_LENGTH && [[ $cur_dir != $paths[${#paths}] ]]; then
|
||||
if (( ${#cur_dir} > $POWERLEVEL9K_SHORTEN_DIR_LENGTH )) && [[ $cur_dir != $paths[${#paths}] ]]; then
|
||||
cur_dir=${cur_dir:0:$POWERLEVEL9K_SHORTEN_DIR_LENGTH}$POWERLEVEL9K_SHORTEN_DELIMITER
|
||||
fi
|
||||
cur_short_path+="$cur_dir/"
|
||||
|
Loading…
Reference in New Issue
Block a user