mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2026-09-28 15:54:40 +00:00
Adding reference for truncate_to_unique code.
This commit is contained in:
@@ -711,7 +711,7 @@ prompt_dir() {
|
|||||||
;;
|
;;
|
||||||
truncate_to_unique)
|
truncate_to_unique)
|
||||||
# for each parent path component find the shortest unique beginning
|
# for each parent path component find the shortest unique beginning
|
||||||
# characters sequence
|
# characters sequence. Source: https://stackoverflow.com/a/45336078
|
||||||
paths=(${(s:/:)PWD})
|
paths=(${(s:/:)PWD})
|
||||||
cur_path='/'
|
cur_path='/'
|
||||||
cur_short_path='/'
|
cur_short_path='/'
|
||||||
|
|||||||
Reference in New Issue
Block a user