diff options
Diffstat (limited to 'Functions/Prompts')
-rw-r--r-- | Functions/Prompts/promptinit | 5 |
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 |