Improved truncation code

pull/22/head
Christo Kotze 7 years ago
parent fb09d75391
commit 58342612eb

@ -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
;; ;;
*) *)

Loading…
Cancel
Save