rename run_before to lazy_load

This commit is contained in:
Dmytro Meleshko 2018-11-10 22:03:34 +02:00
parent 901fd66a30
commit d797a59375
2 changed files with 3 additions and 3 deletions

View file

@ -20,7 +20,7 @@ source_if_exists() {
[[ -f "$1" ]] && source "$1" [[ -f "$1" ]] && source "$1"
} }
run_before() { lazy_load() {
local command="$1" local command="$1"
local init_command="$2" local init_command="$2"

4
zshrc
View file

@ -7,5 +7,5 @@ for script in zgen aliases widgets theme; do
source_if_exists "$DOTFILES_PATH/custom/$script.zsh" source_if_exists "$DOTFILES_PATH/custom/$script.zsh"
done done
run_before rbenv 'eval "$(rbenv init -)"' lazy_load rbenv 'eval "$(rbenv init -)"'
run_before sdk 'source_if_exists "$SDKMAN_DIR/bin/sdkman-init.sh"' lazy_load sdk 'source_if_exists "$SDKMAN_DIR/bin/sdkman-init.sh"'