.zshrc: Added max prompt width
This commit is contained in:
parent
c3e3cfb837
commit
24289658d9
1 changed files with 4 additions and 1 deletions
5
.zshrc
5
.zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue