mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +00:00
Improved truncation code
This commit is contained in:
parent
fb09d75391
commit
58342612eb
1 changed files with 2 additions and 2 deletions
|
@ -861,8 +861,8 @@ prompt_dir() {
|
|||
trunc_path+="$test_dir/"
|
||||
cur_path+="$directory/"
|
||||
done
|
||||
[[ $current_path == "~"* ]] && current_path="~/" || current_path=""
|
||||
current_path+="${trunc_path: : -1}"
|
||||
[[ $current_path == "~"* ]] && trunc_path="~/$trunc_path"
|
||||
current_path="${trunc_path: : -1}"
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue