jubianchi / phpswitch

A CLI utility to help you build and test PHP versions
http://jubianchi.github.io/phpswitch/
MIT License
90 stars 8 forks source link

bad pattern in precmd_functions #30

Closed hoshsadiq closed 5 years ago

hoshsadiq commented 9 years ago

I'm using zsh with oh-my-zsh and when I try to source the .phpswitchrc file, it doesn't want to source it getting this error: /home/hosh/.phpswitch/.phpswitchrc:164: bad pattern: precmd_functions=(omz_termsupport_precmd

Looking at the .phpswitchrc:

161: [ $(echo $SHELL | grep bash) ] && export PROMPT_COMMAND="phpswitch_dir"
162: if [ $(echo $SHELL | grep zsh) ]
163: then
164:    export precmd_functions=($precmd_functions phpswitch_dir)
165: fi
166: export _PHPSWITCH_ASK=0

Any ideas how I can get this to run?