1
0
mirror of https://github.com/dcarrillo/prezto.git synced 2025-10-14 15:49:09 +00:00

[#23, Fix #80] Move themes into the prompt module

This commit is contained in:
Sorin Ionescu
2012-04-02 19:21:54 -04:00
parent 6233ec6aad
commit 66c14486c6
7 changed files with 22 additions and 18 deletions

19
modules/prompt/init.zsh Normal file
View File

@@ -0,0 +1,19 @@
#
# Loads prompt themes.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Load and run the prompt theming system.
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