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:
@@ -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
|
||||
|
||||
3
zsh/custom_prompt_path.zsh
Normal file
3
zsh/custom_prompt_path.zsh
Normal 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
|
||||
@@ -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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user