Don't load everything on dumb terminals
This commit is contained in:
parent
0b69a7cfe3
commit
3c1d4fe5e4
8
zshrc
8
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
|
||||
|
|
Loading…
Reference in a new issue