[zsh] Convert zshrc to use do_init_functions

This commit is contained in:
Eryn Wells 2022-05-25 17:02:48 -07:00
parent b82c83073c
commit d5ede2e563

41
zshrc
View file

@ -1,34 +1,21 @@
#!/usr/bin/env zsh
# Eryn Wells <eryn@erynwells.me>
autoload -Uz init_app_environments
autoload -Uz init_configure_ls
autoload -Uz init_rc_aliases
autoload -Uz init_rc_tilde_paths
autoload -Uz init_rc_configure_completion
autoload -Uz init_rc_configure_prompt
autoload -Uz init_rc_configure_zle
autoload -Uz init_zsh_options
autoload -Uz init_zsh_history
autoload -Uz init_zsh_functions
zsh_init_rc_functions=( \
init_rc_aliases \
init_rc_vi \
init_configure_ls \
init_rc_tilde_paths \
init_rc_configure_prompt \
init_rc_configure_zle \
init_rc_configure_completion \
init_zsh_options \
init_zsh_history \
init_app_environments \
init_rc_$SYS \
)
init_rc_aliases
init_rc_tilde_paths
init_rc_configure_prompt loquacious
init_rc_configure_zle emacs
init_rc_configure_completion
init_zsh_options
init_zsh_history
init_app_environments
if autoload +X init_rc_$SYS &>-; then
init_rc_$SYS
fi
# Configure ls with the system ls if it hasn't been done already.
if ! alias ls &>-; then
init_configure_ls `which ls`
fi
do_init_functions zsh_init_rc_functions
autoload -Uz g
autoload -Uz nethack