about summary refs log tree commit diff
path: root/Functions/Prompts
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2000-09-04 21:10:29 +0000
committerBart Schaefer <barts@users.sourceforge.net>2000-09-04 21:10:29 +0000
commitdc1f7c5a3429321b10c6e05c11d99c94ff5c3e87 (patch)
tree904366741d50f3a05e55ecf909aaf41f14c1380f /Functions/Prompts
parent88b886e6034b1902c929eb6e6e2a06b9f4854c03 (diff)
downloadzsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.gz
zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.tar.xz
zsh-dc1f7c5a3429321b10c6e05c11d99c94ff5c3e87.zip
Create "User Contributions" doc and make some assoctiated changes.
Diffstat (limited to 'Functions/Prompts')
-rw-r--r--Functions/Prompts/promptinit5
1 files changed, 3 insertions, 2 deletions
diff --git a/Functions/Prompts/promptinit b/Functions/Prompts/promptinit
index a07650500..4ccdcf55b 100644
--- a/Functions/Prompts/promptinit
+++ b/Functions/Prompts/promptinit
@@ -76,7 +76,7 @@ Options:
 
 Use prompt -h <theme> for help on specific themes.'
 
-  getopts "chlps" opt
+  getopts "chlps:" opt
   case "$opt" in
     (h|p)
       setopt localtraps
@@ -136,7 +136,8 @@ Use prompt -h <theme> for help on specific themes.'
        print "  autoload -U promptinit"
        print "  promptinit"
        print "  prompt $*[2,-1]"
-       ;;
+       shift
+       ;&
     *) if [[ "$1" == 'random' ]]; then
          local random_themes
          if (( $#* == 1 )); then