move PS1 part from render.py to zsh-init
This commit is contained in:
parent
370ba5c576
commit
1c38428f6b
2 changed files with 8 additions and 32 deletions
5
zsh-init
5
zsh-init
|
@ -20,11 +20,10 @@ function preexec {
|
|||
}
|
||||
|
||||
function precmd {
|
||||
python3 ./render.py $? $COLUMNS 1.25 2.5 0.15 0.05
|
||||
|
||||
set_title "${PWD}"
|
||||
python3 ./render.py $? $COLUMNS 1.25 2.5 0.15 0.05
|
||||
PS1="$(print "%(?.%{\e[1;36m%}.%{\e[1;31m%}%?%{\e[0m%}:%{\e[1;31m%})%(\!.#.$)%{\e[0m%} ")"
|
||||
}
|
||||
|
||||
unset OVER_PROMPT_CFG
|
||||
unset PS1
|
||||
unset RPS1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue