From 50318c02508b3c0b97ce502424b77060da561096 Mon Sep 17 00:00:00 2001 From: romkatv Date: Thu, 6 Feb 2020 17:18:40 +0100 Subject: add POWERLEVEL9K_DIR_TRUNCATE_BEFORE_MARKER to config templates --- config/p10k-classic.zsh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config/p10k-classic.zsh') diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh index 95fc1900..3fb1d35b 100644 --- a/config/p10k-classic.zsh +++ b/config/p10k-classic.zsh @@ -271,6 +271,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 -- cgit v1.2.3