zshrc: break out sourcing code
This commit is contained in:
parent
cd8c93a206
commit
68c26a9ac1
16
.zsh/sources.zsh
Normal file
16
.zsh/sources.zsh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
local __tosrc=(
|
||||||
|
~/.zsh/bindings.zsh
|
||||||
|
~/.zsh/fzf.zsh
|
||||||
|
~/.zsh/zvm.zsh
|
||||||
|
|
||||||
|
~/.dotenv
|
||||||
|
${XDG_RUNTIME_DIR}/secrets/envs
|
||||||
|
~/.zsh/aliases.zsh
|
||||||
|
~/.zsh/functions.zsh
|
||||||
|
)
|
||||||
|
|
||||||
|
for s in $__tosrc[@]; do
|
||||||
|
test -f $s && source $s
|
||||||
|
done
|
||||||
|
|
||||||
|
unset __tosrc
|
17
.zshrc
17
.zshrc
@ -37,22 +37,7 @@
|
|||||||
ZSH_THEME_GIT_PROMPT_CACHE=" "
|
ZSH_THEME_GIT_PROMPT_CACHE=" "
|
||||||
|
|
||||||
|
|
||||||
local __tosrc=(
|
test -f ~/.zsh/sources.zsh && source ~/.zsh/sources.zsh
|
||||||
~/.zsh/bindings.zsh
|
|
||||||
~/.zsh/fzf.zsh
|
|
||||||
~/.zsh/zvm.zsh
|
|
||||||
|
|
||||||
~/.dotenv
|
|
||||||
${XDG_RUNTIME_DIR}/secrets/envs
|
|
||||||
~/.zsh/aliases.zsh
|
|
||||||
~/.zsh/functions.zsh
|
|
||||||
)
|
|
||||||
|
|
||||||
for s in $__tosrc[@]; do
|
|
||||||
test -f $s && source $s
|
|
||||||
done
|
|
||||||
unset __tosrc
|
|
||||||
|
|
||||||
|
|
||||||
# You may need to manually set your language environment
|
# You may need to manually set your language environment
|
||||||
LANG=en_GB.UTF-8
|
LANG=en_GB.UTF-8
|
||||||
|
Loading…
Reference in New Issue
Block a user