Ability to store your own prompts in ~/.zsh.prompts [Close #152]

We no longer pollute yadr or prezto directories with custom code!
This commit is contained in:
Yan Pritzker
2012-09-26 11:05:28 -07:00
parent d8e5043c40
commit fa357bbd35
7 changed files with 32 additions and 12 deletions

View File

@@ -1,4 +1,7 @@
# Load any user customizations prior to load
#
if [ -d $HOME/.zsh.before/ ]; then
for config_file ($HOME/.zsh.before/*.zsh) source $config_file
if [ "$(ls -A $HOME/.zsh.before/)" ]; then
for config_file ($HOME/.zsh.before/*.zsh) source $config_file
fi
fi

View File

@@ -0,0 +1,3 @@
#Load themes from yadr and from user's custom prompts (themes) in ~/.zsh.prompts
fpath=($HOME/.yadr/zsh/prezto-themes $HOME/.zsh.prompts $fpath)
promptinit

View File

@@ -1,4 +0,0 @@
modules/prompt/functions contains custom prompts for Prezto
These themes can be submitted to Prezto to be official. Until they are accepted, they can live here.
Learn more at: https://github.com/sorin-ionescu/prezto

View File

@@ -1,4 +1,6 @@
# Load any custom after code
if [ -d $HOME/.zsh.after/ ]; then
for config_file ($HOME/.zsh.after/*.zsh) source $config_file
if [ "$(ls -A $HOME/.zsh.after/)" ]; then
for config_file ($HOME/.zsh.after/*.zsh) source $config_file
fi
fi