aboutsummaryrefslogtreecommitdiff
path: root/internal/p10k.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 /internal/p10k.zsh
parent0c627eb31de1b816e98fa17a11ecf675c4e2b366 (diff)
add more patterns to POWERLEVEL9K_SHORTEN_FOLDER_MARKER
Diffstat (limited to 'internal/p10k.zsh')
-rwxr-xr-xinternal/p10k.zsh19
1 files changed, 18 insertions, 1 deletions
diff --git a/internal/p10k.zsh b/internal/p10k.zsh
index 5caaea15..fc262ade 100755
--- a/internal/p10k.zsh
+++ b/internal/p10k.zsh
@@ -3619,7 +3619,24 @@ _p9k_init_params() {
_p9k_declare -s POWERLEVEL9K_DIR_PATH_HIGHLIGHT_FOREGROUND
_p9k_declare -s POWERLEVEL9K_DIR_ANCHOR_FOREGROUND
_p9k_declare -s POWERLEVEL9K_DIR_SHORTENED_FOREGROUND
- _p9k_declare -s POWERLEVEL9K_SHORTEN_FOLDER_MARKER "(.shorten_folder_marker|.bzr|CVS|.git|.hg|.svn|.terraform|.citc)"
+ local markers=(
+ .bzr
+ .citc
+ .git
+ .hg
+ .node-version
+ .python-version
+ .ruby-version
+ .shorten_folder_marker
+ .svn
+ .terraform
+ CVS
+ Cargo.toml
+ composer.json
+ go.mod
+ package.json
+ )
+ _p9k_declare -s POWERLEVEL9K_SHORTEN_FOLDER_MARKER "(${(j:|:)markers})"
# Shorten directory if it's longer than this even if there is space for it.
# The value can be either absolute (e.g., '80') or a percentage of terminal
# width (e.g, '50%'). If empty, directory will be shortened only when prompt