if [[ "$TERM" != dumb ]] && (( $+commands[grc] )) ; then # Supported commands cmds=( cc \ configure \ cvs \ df \ diff \ dig \ docker \ docker-compose \ docker-machine \ gcc \ gmake \ ifconfig \ last \ ldap \ ls \ make \ mount \ mtr \ netstat \ ping \ ping6 \ ps \ traceroute \ traceroute6 \ wdiff \ whois \ iwconfig \ ); # Set alias for available commands. for cmd in $cmds ; do if (( $+commands[$cmd] )) ; then alias $cmd="grc $(whence $cmd)" fi done # Clean up variables unset cmds cmd fi