.zshrc: Added max prompt width

This commit is contained in:
Viyurz 2023-10-05 10:18:27 +02:00
parent c3e3cfb837
commit 24289658d9
No known key found for this signature in database

5
.zshrc
View file

@ -31,7 +31,10 @@ autoload -Uz compinit && compinit
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}'
# Set prompt # Set prompt
PROMPT="%B%F{198}%n%F{015}@%F{014}%m%F{015}:%F{198}%~%F{015}> %b%f" zmodload zsh/mathfunc
#width=$((int( $COLUMNS / 4 )))
width=42
PROMPT="%B%F{198}%n%F{015}@%F{014}%m%F{015}:%F{198}%${width}<..<%~%F{015}> %b%f"
#autoload -Uz promptinit && promptinit #autoload -Uz promptinit && promptinit
# History settings # History settings