2012-04-02 23:21:54 +00:00
|
|
|
#
|
|
|
|
# Loads prompt themes.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
2012-05-31 21:33:59 +00:00
|
|
|
# Load and execute the prompt theming system.
|
2012-04-02 23:21:54 +00:00
|
|
|
autoload -Uz promptinit && promptinit
|
|
|
|
|
|
|
|
# Load the prompt theme.
|
2012-09-03 20:08:39 +00:00
|
|
|
zstyle -a ':prezto:module:prompt' theme 'prompt_argv'
|
2014-11-05 22:41:36 +00:00
|
|
|
if [[ "$TERM" == (dumb|linux|*bsd*) ]] || (( $#prompt_argv < 1 )); then
|
2012-04-02 23:21:54 +00:00
|
|
|
prompt 'off'
|
2021-04-26 19:04:43 +00:00
|
|
|
elif [[ "$prompt_argv[1]" == 'powerlevel9k' ]] ; then
|
2021-04-29 22:22:53 +00:00
|
|
|
<<EOW
|
|
|
|
WARNING: Prezto does not support 'powerlevel9k' anymore as it has
|
|
|
|
been deprecated and is not supported by its author.
|
|
|
|
Consider migrating to 'powerlevel10k' instead.
|
|
|
|
Switching to prezto default prompt 'sorin'..."
|
|
|
|
EOW
|
2021-04-26 19:04:43 +00:00
|
|
|
prompt 'sorin'
|
2014-11-05 22:41:36 +00:00
|
|
|
else
|
|
|
|
prompt "$prompt_argv[@]"
|
2012-04-02 23:21:54 +00:00
|
|
|
fi
|
|
|
|
unset prompt_argv
|