Move fixed file loading to load-dir
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
9bae4c305a
commit
9971c7f13d
1 changed files with 12 additions and 8 deletions
|
@ -10,11 +10,11 @@ export PATH=$PATH:$HOME/.local/bin
|
||||||
|
|
||||||
## Make join_by function globally available
|
## Make join_by function globally available
|
||||||
function join_by() {
|
function join_by() {
|
||||||
local d=$1
|
local d=$1
|
||||||
shift
|
shift
|
||||||
echo -n "$1"
|
echo -n "$1"
|
||||||
shift
|
shift
|
||||||
printf "%s" "${@/#/$d}"
|
printf "%s" "${@/#/$d}"
|
||||||
}
|
}
|
||||||
|
|
||||||
## Some default settings
|
## Some default settings
|
||||||
|
@ -69,15 +69,19 @@ source ${HOME}/.zsh/gpg-agent.plugin.zsh
|
||||||
source ${HOME}/.zsh/config-git.zsh
|
source ${HOME}/.zsh/config-git.zsh
|
||||||
|
|
||||||
## Load local-config if available
|
## Load local-config if available
|
||||||
[ -e ${HOME}/.zsh/local-config.zsh ] && source ${HOME}/.zsh/local-config.zsh
|
[[ -d ${HOME}/.zsh/config.sh.d ]] && {
|
||||||
|
for lc in $(find ${HOME}/.zsh/config.sh.d -name '*.zsh' -o -name '*.sh'); do
|
||||||
|
[[ -e $lc ]] && source ${lc} || true
|
||||||
|
done
|
||||||
|
} || true
|
||||||
|
|
||||||
## Load peco functions
|
## Load peco functions
|
||||||
source ${HOME}/.zsh/peco.sh
|
source ${HOME}/.zsh/peco.sh
|
||||||
|
|
||||||
## Load direnv
|
## Load direnv
|
||||||
(which direnv >/dev/null 2>&1) && {
|
(which direnv >/dev/null 2>&1) && {
|
||||||
export DIRENV_LOG_FORMAT=""
|
export DIRENV_LOG_FORMAT=""
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
}
|
}
|
||||||
|
|
||||||
## Clean PATH from duplicates
|
## Clean PATH from duplicates
|
||||||
|
|
Loading…
Reference in a new issue