While playing around with neovide, I learned that processes can reasonably expect non-login shells to print nothing except commands to execute. This change modifies zshrc to only print tmux sessions (something I only care about when I start a shell myself) in LOGIN shells.
30 lines
595 B
Bash
30 lines
595 B
Bash
# Eryn Wells <eryn@erynwells.me>
|
|
|
|
zsh_init_rc_functions=( \
|
|
init_rc_fpath_darwin \
|
|
init_rc_aliases \
|
|
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 \
|
|
)
|
|
|
|
if [[ -o LOGIN ]]; then
|
|
zsh_init_rc_functions+=(
|
|
list_tmux_sessions \
|
|
)
|
|
fi
|
|
|
|
do_init_functions zsh_init_rc_functions
|
|
|
|
autoload -Uz g
|
|
autoload -Uz nethack
|
|
autoload -Uz pw
|
|
autoload -Uz up
|
|
autoload -Uz vi
|
|
autoload -Uz homebrew-prefix
|