mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-29 00:04:36 +00:00
Improved truncation code
This commit is contained in:
@@ -861,8 +861,8 @@ prompt_dir() {
|
|||||||
trunc_path+="$test_dir/"
|
trunc_path+="$test_dir/"
|
||||||
cur_path+="$directory/"
|
cur_path+="$directory/"
|
||||||
done
|
done
|
||||||
[[ $current_path == "~"* ]] && current_path="~/" || current_path=""
|
[[ $current_path == "~"* ]] && trunc_path="~/$trunc_path"
|
||||||
current_path+="${trunc_path: : -1}"
|
current_path="${trunc_path: : -1}"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|||||||
Reference in New Issue
Block a user