Adding reference for `truncate_to_unique` code.

pull/22/head
Ben Hilburn 7 years ago committed by GitHub
parent 5923aaf07d
commit e464b4e2a5

@ -711,7 +711,7 @@ prompt_dir() {
;;
truncate_to_unique)
# for each parent path component find the shortest unique beginning
# characters sequence
# characters sequence. Source: https://stackoverflow.com/a/45336078
paths=(${(s:/:)PWD})
cur_path='/'
cur_short_path='/'

Loading…
Cancel
Save