mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
rename run_before to lazy_load
This commit is contained in:
parent
901fd66a30
commit
d797a59375
2 changed files with 3 additions and 3 deletions
|
@ -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
4
zshrc
|
@ -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"'
|
||||||
|
|
Loading…
Reference in a new issue