diff options
author | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-18 11:43:49 +0300 |
---|---|---|
committer | Roman Perepelitsa <roman.perepelitsa@gmail.com> | 2020-07-18 11:43:49 +0300 |
commit | 6dfd92f8c1d60892ea9b2a57e93cd22a8cb75c2a (patch) | |
tree | 351dbcb07f4b444fbee5b750e077f1cf19587fe7 /config/p10k-rainbow.zsh | |
parent | 620e69fef1f1197998810d373f41b6e2a8fa651d (diff) |
allow optional offset in POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER; see #896
Diffstat (limited to 'config/p10k-rainbow.zsh')
-rw-r--r-- | config/p10k-rainbow.zsh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/p10k-rainbow.zsh b/config/p10k-rainbow.zsh index 74db332c..7deeb594 100644 --- a/config/p10k-rainbow.zsh +++ b/config/p10k-rainbow.zsh @@ -247,6 +247,11 @@ # /foo/bar/git_repo/nested_git_repo/baz, prompt will display git_repo/nested_git_repo/baz (first) # or nested_git_repo/baz (last). This assumes that git_repo and nested_git_repo contain markers # and other directories don't. + # + # Optionally, "first" and "last" can be followed by ":<offset>" where <offset> is an integer. + # This moves the truncation point to the right (positive offset) or to the left (negative offset) + # relative to the marker. Plain "first" and "last" are equivalent to "first:0" and "last:0" + # respectively. typeset -g POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER=false # Don't shorten this many last directory segments. They are anchors. typeset -g POWERLEVEL9K_SHORTEN_DIR_LENGTH=1 |