diff --git a/zshrc b/zshrc index 6dd75b00..59070578 100644 --- a/zshrc +++ b/zshrc @@ -1,5 +1,13 @@ #!/bin/zsh +# Prevent any of this initialization in non-interactive (or emacs) +# shell commands. It slows them down. +[[ $TERM == "dumb" ]] && return + +function command_exists { + command -v "$1" &> /dev/null +} + # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source ~/.zsh/preztorc