Added helper functions.

This commit is contained in:
Sorin Ionescu 2011-07-28 16:41:39 -04:00
commit 9c24ac8211
6 changed files with 63 additions and 13 deletions

View file

@ -2,7 +2,7 @@ setopt correct # Correct commands.
setopt correct_all # Correct all arguments.
# The 'ls' Family
if [[ "$DISABLE_COLOR" != 'true' ]]; then
if ! check-bool "$DISABLE_COLOR"; then
if [[ -f "$HOME/.dir_colors" ]] && ( (( $+commands[dircolors] )) || ( (( $+plugins[(er)gnu-utils] )) && (( $+commands[gdircolors] )) ) ); then
eval $("${commands[dircolors]:-$commands[gdircolors]}" "$HOME/.dir_colors")
alias ls='ls -hF --group-directories-first --color=auto'
@ -80,7 +80,7 @@ else
fi
# Diff/Make
if [[ "$DISABLE_COLOR" != 'true' ]]; then
if ! check-bool "$DISABLE_COLOR"; then
if (( $+commands[colordiff] )); then
alias diff='colordiff -u'
compdef colordiff=diff