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