From 56bc6541cc97c5bb961c25e838860167bfcc5bbf Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 22 May 2012 15:58:20 +1200 Subject: Only complete when appropriate --- bash/bashrc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bash/bashrc b/bash/bashrc index bf43c8b9..5e7d37d0 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -73,6 +73,10 @@ alias mysql="mysql --safe-updates" # Use completion, if available. if [ -e /etc/bash_completion ]; then . /etc/bash_completion + + # Use shots for hostname completion, if available. + hash shots &>/dev/null && complete -F _known_hosts -W "$(shots)" \ + dig fping ftp host mtr nc netcat ping ping6 telnet traceroute fi # SSH agent setup, if available. @@ -86,10 +90,6 @@ stty -ixon # Never beep at me. setterm -bfreq 0 -# Use shots for hostname completion, if available. -hash shots &>/dev/null && complete -W "$(shots)" \ - dig ftp host nc netcat ping telnet - # Use vi as my text editor, if available. hash vi &>/dev/null && export EDITOR=vi -- cgit v1.2.3