1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-24 12:31:31 +01:00

Updated grc aliases

This commit is contained in:
bretello 2017-07-18 15:57:26 +02:00
parent 50f8012ed9
commit 7c9dc917dd

View File

@ -72,27 +72,45 @@ alias ssh1="ssh -o ControlMaster=no"
# Some colorizing options for grc # Some colorizing options for grc
GRC=$(which grc) if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then
if [ "$TERM" != dumb ] && [ -n "$GRC" ]; then # Prevent grc aliases from overriding zsh completions.
#alias colourify="$GRC -es --colour=auto" setopt COMPLETE_ALIASES
alias colourify="$GRC --colour=auto"
alias configure='colourify ./configure' # Supported commands
alias diff='colourify diff' cmds=(
alias make='colourify make' cc \
alias gcc='colourify gcc' configure \
alias g++='colourify g++' cvs \
alias as='colourify as' df \
alias gas='colourify gas' diff \
alias ld='colourify ld' dig \
alias netstat='colourify netstat' gcc \
alias ping='colourify ping' gmake \
alias traceroute='colourify /usr/sbin/traceroute' ifconfig \
alias head='colourify head' last \
alias tail='colourify tail' ldap \
alias dig='colourify dig' ls \
alias mount='colourify mount' make \
alias ps='colourify ps' mount \
alias mtr='colourify mtr' mtr \
netstat \
ping \
ping6 \
ps \
traceroute \
traceroute6 \
wdiff \
);
# Set alias for available commands.
for cmd in $cmds ; do
if (( $+commands[$cmd] )) ; then
alias $cmd="grc --colour=auto $cmd"
fi
done
# Clean up variables
unset cmds cmd
fi fi
if [[ -f ~/.dotfiles_aliases ]]; if [[ -f ~/.dotfiles_aliases ]];