1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-11-14 00:50:08 +00:00
This commit is contained in:
romkatv 2019-07-19 22:50:26 +02:00
parent d65e7eb926
commit 259a2954cd

View file

@ -2742,7 +2742,7 @@ function _p9k_set_prompt() {
if (( i == num_lines && (POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS > 0 || POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT > 0) )); then if (( i == num_lines && (POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS > 0 || POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT > 0) )); then
local a=$POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS local a=$POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS
local f=$((0.01*POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT))'*_P9K_CLM' local f=$((0.01*POWERLEVEL9K_DIR_MIN_COMMAND_COLUMNS_PCT))'*_P9K_CLM'
PROMPT+="\${\${_P9K_G::=$((($a<$f)*$f+($a>=$f)*$a))}}+}" PROMPT+="\${\${_P9K_G::=$((($a<$f)*$f+($a>=$f)*$a))}+}"
else else
PROMPT+='${${_P9K_G::=0}+}' PROMPT+='${${_P9K_G::=0}+}'
fi fi