zshrc: source files only if they exist
This commit is contained in:
parent
12dddf410c
commit
7e0ea6ace1
18
.zshrc
18
.zshrc
@ -146,11 +146,19 @@
|
||||
unset fzf_bindings
|
||||
# ZVM_INSERT_MODE_CURSOR=$ZVM_CURSOR_BLINKING_BLOCK
|
||||
|
||||
# User configuration
|
||||
source ~/.dotenv
|
||||
source ${XDG_RUNTIME_DIR}/secrets/envs
|
||||
source ~/.zsh/aliases.zsh
|
||||
source ~/.zsh/functions.zsh
|
||||
|
||||
local __tosrc=(
|
||||
~/.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
|
||||
LANG=en_GB.UTF-8
|
||||
|
Loading…
Reference in New Issue
Block a user