zsh: guard update_zshrc call against missing function
This commit is contained in:
@@ -35,7 +35,7 @@ alias open-ports="ss -tulpn | grep LISTEN"
|
||||
alias yeet='yay -Rcs'
|
||||
|
||||
# Auto-update on interactive shell start. Disable with ZSHRC_UPDATE_DISABLED=true.
|
||||
[[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]] && update_zshrc
|
||||
[[ -o interactive && "$ZSHRC_UPDATE_DISABLED" != "true" ]] && (( $+functions[update_zshrc] )) && update_zshrc
|
||||
|
||||
[[ -f $HOME/.zshrc.local ]] || touch $HOME/.zshrc.local
|
||||
source $HOME/.zshrc.local
|
||||
|
||||
Reference in New Issue
Block a user