mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-16 17:50:09 +00:00
used set_default-function instead
This commit is contained in:
parent
f472ba7341
commit
3441f750bf
1 changed files with 1 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue