mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-28 15:01:21 +02:00
22739: arno: different test for theme in prompt -c
This commit is contained in:
parent
78d1939ffd
commit
d09274dcd8
@ -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…
Reference in New Issue
Block a user