aboutsummaryrefslogtreecommitdiff
path: root/config/p10k-lean-8colors.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2020-02-06 19:18:40 +0300
committerromkatv <roman.perepelitsa@gmail.com>2020-02-06 19:18:40 +0300
commit50318c02508b3c0b97ce502424b77060da561096 (patch)
treec158c41d48cc27681f1117d150a6aae184ec1b55 /config/p10k-lean-8colors.zsh
parent71708336a903124f18d8754b07c7e95175f2994b (diff)
add POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER to config templates
Diffstat (limited to 'config/p10k-lean-8colors.zsh')
-rw-r--r--config/p10k-lean-8colors.zsh5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/p10k-lean-8colors.zsh b/config/p10k-lean-8colors.zsh
index b4fdc146..f0106a36 100644
--- a/config/p10k-lean-8colors.zsh
+++ b/config/p10k-lean-8colors.zsh
@@ -272,6 +272,11 @@
package.json
)
typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
+ # If set to true, remove everything before the last (deepest) subdirectory that contains files
+ # matching $POWERLEVEL9K_SHORTEN_FOLDER_MARKER. For example, when the current directory is
+ # /foo/bar/git_repo/baz, prompt will display git_repo/baz. This assumes that /foo/bar/git_repo
+ # contains a marker (.git) and other directories don't.
+ 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
# Shorten directory if it's longer than this even if there is space for it. The value can