summaryrefslogtreecommitdiff
path: root/config/p10k-lean.zsh
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-08-28 16:41:59 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-08-28 16:41:59 +0300
commit3a1ebea014690b8fd39531732ec8abbeabc2d1f0 (patch)
tree1e6e5b9746caef378cb36e049a8102eaa1f3cffa /config/p10k-lean.zsh
parent0c627eb31de1b816e98fa17a11ecf675c4e2b366 (diff)
add more patterns to POWERLEVEL9K_SHORTEN_FOLDER_MARKER
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r--config/p10k-lean.zsh21
1 files changed, 19 insertions, 2 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 62ed0bad..34566ea6 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -203,8 +203,25 @@ fi
typeset -g POWERLEVEL9K_DIR_ANCHOR_FOREGROUND=39
# Display anchor directory segments in bold.
typeset -g POWERLEVEL9K_DIR_ANCHOR_BOLD=true
- # Don't shorten directories that contain files matching this pattern. They are anchors.
- typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER='(.shorten_folder_marker|.bzr|CVS|.git|.hg|.svn|.terraform|.citc)'
+ # Don't shorten directories that contain any of these files. They are anchors.
+ local anchor_files=(
+ .bzr
+ .citc
+ .git
+ .hg
+ .node-version
+ .python-version
+ .ruby-version
+ .shorten_folder_marker
+ .svn
+ .terraform
+ CVS
+ Cargo.toml
+ composer.json
+ go.mod
+ package.json
+ )
+ typeset -g POWERLEVEL9K_SHORTEN_FOLDER_MARKER="(${(j:|:)anchor_files})"
# 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