whole-command-tab-completion
bretello 2017-08-08 10:38:27 +02:00
parent 7c9dc917dd
commit cf0b5ee0f1
1 changed files with 2 additions and 3 deletions

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