mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-09 02:24:03 +01:00
add support for zsh.after
This commit is contained in:
parent
67f0c57324
commit
845e636516
1 changed files with 9 additions and 0 deletions
|
|
@ -41,6 +41,8 @@
|
|||
# If ZSH is not defined, use the current script's directory.
|
||||
[[ -z "$ZSH" ]] && export ZSH="${${(%):-%x}:a:h}"
|
||||
|
||||
mkdir -p "$HOME"/.zsh.after
|
||||
|
||||
# Set ZSH_CACHE_DIR to the path where cache files should be created
|
||||
# or else we will use the default cache/
|
||||
if [[ -z "$ZSH_CACHE_DIR" ]]; then
|
||||
|
|
@ -189,3 +191,10 @@ if [[ -n "$ZSH_THEME" ]]; then
|
|||
echo "[oh-my-zsh] theme '$ZSH_THEME' not found"
|
||||
fi
|
||||
fi
|
||||
|
||||
for config_file ("$HOME"/.zsh.after/*.zsh(N)); do
|
||||
source "$config_file"
|
||||
done
|
||||
|
||||
unset config_file
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue