about summary refs log tree commit diff
path: root/Functions/Prompts
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-09-21 16:48:21 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-09-21 16:48:21 +0000
commitd09274dcd8199dadcb907b0b78a04674807a107f (patch)
treea7f68304671f032e32ca7ca18cd89dd57e2ba598 /Functions/Prompts
parent78d1939ffd229c8c4ff303bac6d41a08b983e65e (diff)
downloadzsh-d09274dcd8199dadcb907b0b78a04674807a107f.tar.gz
zsh-d09274dcd8199dadcb907b0b78a04674807a107f.tar.xz
zsh-d09274dcd8199dadcb907b0b78a04674807a107f.zip
22739: arno: different test for theme in prompt -c
Diffstat (limited to 'Functions/Prompts')
-rw-r--r--Functions/Prompts/promptinit2
1 files changed, 1 insertions, 1 deletions
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index 0ca4f86bf..37e437699 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -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"