diff options
author | romkatv <roman.perepelitsa@gmail.com> | 2019-08-29 13:25:55 +0300 |
---|---|---|
committer | romkatv <roman.perepelitsa@gmail.com> | 2019-08-29 13:25:55 +0300 |
commit | cb2ca16f514853bcb6009a861e6b50965f131a20 (patch) | |
tree | a6d253afb917678e9fe9c955593666353535852d /config/p10k-lean.zsh | |
parent | 6582c7b25e8bdd5774657f07ccd7e584da167904 (diff) |
add POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS and POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT
Diffstat (limited to 'config/p10k-lean.zsh')
-rw-r--r-- | config/p10k-lean.zsh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/p10k-lean.zsh b/config/p10k-lean.zsh index 34566ea6..833cb6d3 100644 --- a/config/p10k-lean.zsh +++ b/config/p10k-lean.zsh @@ -228,6 +228,12 @@ fi # 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. 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. + typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS=40 + # When `dir` segment is on the last prompt line, try to shorten it enough to leave at least + # COLUMNS * POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT * 0.01 columns for typing commands. + typeset -g POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT=50 # If set to true, embed a hyperlink into the directory. Useful for quickly # opening a directory in the file manager simply by clicking the link. # Can also be handy when the directory is shortened, as it allows you to see |