1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-22 07:11:58 +00:00

Adding reference for truncate_to_unique code.

This commit is contained in:
Ben Hilburn 2017-08-12 13:49:50 -04:00 committed by GitHub
parent 5923aaf07d
commit e464b4e2a5

View file

@ -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='/'