1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-26 09:11:30 +01:00
This commit is contained in:
bretello 2017-08-08 10:38:27 +02:00
parent 7c9dc917dd
commit cf0b5ee0f1

View File

@ -72,7 +72,7 @@ alias ssh1="ssh -o ControlMaster=no"
# Some colorizing options for grc
if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
if [[ "$TERM" != dumb ]] && [[ -f $(which grc) ]] ; then
# Prevent grc aliases from overriding zsh completions.
setopt COMPLETE_ALIASES
@ -89,7 +89,6 @@ if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
ifconfig \
last \
ldap \
ls \
make \
mount \
mtr \
@ -104,7 +103,7 @@ if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
# Set alias for available commands.
for cmd in $cmds ; do
if (( $+commands[$cmd] )) ; then
if [[ -f $(which $cmd) ]] ; then
alias $cmd="grc --colour=auto $cmd"
fi
done