mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-29 00:04:36 +00:00
Updated previous test as Travis still fails
This commit is contained in:
@@ -758,7 +758,7 @@ prompt_dir() {
|
|||||||
for directory in ${paths[@]}
|
for directory in ${paths[@]}
|
||||||
do
|
do
|
||||||
cur_dir=$directory
|
cur_dir=$directory
|
||||||
if (( ${#cur_dir} > $POWERLEVEL9K_SHORTEN_DIR_LENGTH + ${#POWERLEVEL9K_SHORTEN_DELIMITER} )) && [[ $cur_dir != $paths[${#paths}] ]]; then # only shorten if long enough and not last path
|
if (( ${#cur_dir} > ( $POWERLEVEL9K_SHORTEN_DIR_LENGTH + ${#POWERLEVEL9K_SHORTEN_DELIMITER} ) )) && [[ $cur_dir != $paths[${#paths}] ]]; then # only shorten if long enough and not last path
|
||||||
cur_dir=${cur_dir:0:$POWERLEVEL9K_SHORTEN_DIR_LENGTH}$POWERLEVEL9K_SHORTEN_DELIMITER
|
cur_dir=${cur_dir:0:$POWERLEVEL9K_SHORTEN_DIR_LENGTH}$POWERLEVEL9K_SHORTEN_DELIMITER
|
||||||
fi
|
fi
|
||||||
cur_short_path+="$cur_dir/"
|
cur_short_path+="$cur_dir/"
|
||||||
|
|||||||
Reference in New Issue
Block a user