Fix for dumb terminals like Vim's.

This commit is contained in:
Sorin Ionescu 2011-02-27 10:13:57 -05:00
commit e3c3c22ddf
8 changed files with 22 additions and 17 deletions

View file

@ -1,5 +1,10 @@
# Initializes Oh My Zsh
# Disable colors on dumb terminals
if [ "$TERM" = "dumb" ]; then
DISABLE_COLOR="true"
fi
# add a function path
fpath=($ZSH/functions $fpath)
@ -7,9 +12,6 @@ fpath=($ZSH/functions $fpath)
# TIP: Add files you don't want in git to .gitignore
for config_file ($ZSH/lib/*.zsh) source $config_file
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*.zsh) source $config_file
# Load all of the plugins that were defined in ~/.zshrc
plugin=${plugin:=()}
for plugin ($plugins) source $ZSH/plugins/$plugin/$plugin.plugin.zsh
@ -17,6 +19,9 @@ for plugin ($plugins) source $ZSH/plugins/$plugin/$plugin.plugin.zsh
# Load the theme
source "$ZSH/themes/$ZSH_THEME.zsh-theme"
# Load all of your custom configurations from custom/
for config_file ($ZSH/custom/*.zsh) source $config_file
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" = "true" ]
then