mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-27 16:50:58 +01:00
Tweak an expansion.
This commit is contained in:
parent
a132550737
commit
1ddc7c72e5
2 changed files with 7 additions and 1 deletions
|
|
@ -1,3 +1,9 @@
|
||||||
|
2001-03-21 Bart Schaefer <schaefer@zsh.org>
|
||||||
|
|
||||||
|
* unposted: Functions/Prompts/prompt_bart_setup: Use the (S)
|
||||||
|
flag on a parameter expansion to improve parsing of the PS1
|
||||||
|
string when computing its visible length.
|
||||||
|
|
||||||
2001-03-20 Sven Wischnowsky <wischnow@zsh.org>
|
2001-03-20 Sven Wischnowsky <wischnow@zsh.org>
|
||||||
|
|
||||||
* 13674: Completion/User/_telnet: use -l as default for telnet's
|
* 13674: Completion/User/_telnet: use -l as default for telnet's
|
||||||
|
|
|
||||||
|
|
@ -60,7 +60,7 @@ prompt_bart_precmd () {
|
||||||
psvar[8]="$history[$[${(%):-%h}-1]]" # Use history text, not just number
|
psvar[8]="$history[$[${(%):-%h}-1]]" # Use history text, not just number
|
||||||
psvar[9]='' # Padding before upper right prompt
|
psvar[9]='' # Padding before upper right prompt
|
||||||
|
|
||||||
repeat $[COLUMNS-${#${(%%f)${PS1//[%]\{[^%]#%\}/}}[1]}-1]
|
repeat $[COLUMNS-${#${(%%f)${(S)PS1//[%]\{*%\}/}}[1]}-1]
|
||||||
do
|
do
|
||||||
psvar[9]="$psvar[9] "
|
psvar[9]="$psvar[9] "
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue