1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-27 04:40:59 +01:00

zsh-workers/10181

This commit is contained in:
Tanaka Akira 2000-03-23 04:13:54 +00:00
parent 477e1b4004
commit f52d81072a

View file

@ -60,19 +60,10 @@ prompt_bart_precmd () {
psvar[8]="$history[$#history]" # Use history text, not just number
psvar[9]='' # Padding before upper right prompt
if [[ -o promptsubst ]]
then
# This is a bug workaround; ${(%)...} mishandles promptsubst
repeat $[COLUMNS-${#${(%f)${${(e)PS1}//[%]\{[^%]#%\}/}}[1]}-1]
do
psvar[9]="$psvar[9] "
done
else
repeat $[COLUMNS-${#${(%f)${PS1//[%]\{[^%]#%\}/}}[1]}-1]
do
psvar[9]="$psvar[9] "
done
fi
repeat $[COLUMNS-${#${(%%f)${PS1//[%]\{[^%]#%\}/}}[1]}-1]
do
psvar[9]="$psvar[9] "
done
}
prompt_bart_ps1 () {