aboutsummaryrefslogtreecommitdiff
path: root/powerlevel9k.zsh-theme
diff options
context:
space:
mode:
authorBen Hilburn <bhilburn@gmail.com>2017-08-12 20:49:50 +0300
committerGitHub <noreply@github.com>2017-08-12 20:49:50 +0300
commite464b4e2a559508f9f4e0a9bc28a3b1e7d08fbd6 (patch)
tree34dc4ebd318f6472e7cf77575f3ebd7f7f4ae14e /powerlevel9k.zsh-theme
parent5923aaf07d75a2e3f0ca0781240314e0ab91a431 (diff)
Adding reference for `truncate_to_unique` code.
Diffstat (limited to 'powerlevel9k.zsh-theme')
-rwxr-xr-xpowerlevel9k.zsh-theme2
1 files changed, 1 insertions, 1 deletions
diff --git a/powerlevel9k.zsh-theme b/powerlevel9k.zsh-theme
index 3869d262..3baa50ce 100755
--- a/powerlevel9k.zsh-theme
+++ b/powerlevel9k.zsh-theme
@@ -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='/'