Don't load everything on dumb terminals

This commit is contained in:
Henrik Lissner 2014-08-21 03:28:45 -04:00
parent 0b69a7cfe3
commit 3c1d4fe5e4

8
zshrc
View file

@ -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