2012-04-03 01:21:54 +02:00
|
|
|
#
|
|
|
|
# Loads prompt themes.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-05-31 23:33:59 +02:00
|
|
|
# Load and execute the prompt theming system.
|
2012-04-03 01:21:54 +02:00
|
|
|
autoload -Uz promptinit && promptinit
|
|
|
|
|
|
|
|
# Load the prompt theme.
|
|
|
|
zstyle -a ':omz:module:prompt' theme 'prompt_argv'
|
|
|
|
if (( $#prompt_argv > 0 )); then
|
|
|
|
prompt "$prompt_argv[@]"
|
|
|
|
else
|
|
|
|
prompt 'off'
|
|
|
|
fi
|
|
|
|
unset prompt_argv
|
|
|
|
|