mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-01 18:30:55 +01:00
22739: arno: different test for theme in prompt -c
This commit is contained in:
parent
78d1939ffd
commit
d09274dcd8
2 changed files with 4 additions and 1 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2006-09-21 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22739: arno: Functions/Prompt/promptinit: change test
|
||||
for prompt -c to test for theme.
|
||||
|
||||
* 22753: Src/prompt.c, Src/utils.c, Src/Zle/complist.c:
|
||||
minor bugs with using characters spotted from warnings on
|
||||
Cygwin.
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ Use prompt -h <theme> for help on specific themes.'
|
|||
;;
|
||||
esac
|
||||
case "$opt" in
|
||||
c) if (( $+prompt_theme )); then
|
||||
c) if [[ -n $prompt_theme ]]; then
|
||||
print -n "Current prompt theme"
|
||||
(( $#prompt_theme > 1 )) && print -n " with parameters"
|
||||
print " is:\n $prompt_theme"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue