aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromkatv <roman.perepelitsa@gmail.com>2019-10-08 10:20:15 +0300
committerromkatv <roman.perepelitsa@gmail.com>2019-10-08 10:20:15 +0300
commitb7bd643ae688d9e35de4b3fda8aaaade748491bc (patch)
treebcd6cbb8f468d0a4ac96fd5143a8c6983f2689c8
parent1888d2cee563cdb289d0804143994fb7e429f6b1 (diff)
clarify comments for POWERLEVEL9K_DIR_MAX_LENGTH
Make it explicit that POWERLEVEL9K_DIR_MAX_LENGTH isn't the only constraint that may cause directory truncation. See the original description of #250 before this issue was repurposed for something unrelated.
-rw-r--r--config/p10k-classic.zsh3
-rw-r--r--config/p10k-lean.zsh3
2 files changed, 4 insertions, 2 deletions
diff --git a/config/p10k-classic.zsh b/config/p10k-classic.zsh
index 52ba6a7d..1c910039 100644
--- a/config/p10k-classic.zsh
+++ b/config/p10k-classic.zsh
@@ -252,7 +252,8 @@
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
# be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,
- # directory will be shortened only when prompt doesn't fit.
+ # directory will be shortened only when prompt doesn't fit or when other parameters demand it
+ # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
# When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
# many columns for typing commands.
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh
index 5e7d5fab..7d3d6cba 100644
--- a/config/p10k-lean.zsh
+++ b/config/p10k-lean.zsh
@@ -232,7 +232,8 @@
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
# be either absolute (e.g., '80') or a percentage of terminal width (e.g, '50%'). If empty,
- # directory will be shortened only when prompt doesn't fit.
+ # directory will be shortened only when prompt doesn't fit or when other parameters demand it
+ # (see POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT below).
typeset -g POWERLEVEL9K_DIR_MAX_LENGTH=80
# When `dir` segment is on the last prompt line, try to shorten it enough to leave at least this
# many columns for typing commands.