aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2012-05-22 15:15:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2012-05-22 15:15:02 +1200
commitff125d256a2d4ba8708f9f1737f85b0362f371f8 (patch)
treed900ef82477db36ccf5310a458b94a070003e07d
parentSimply suppress setting errors. (diff)
downloaddotfiles-ff125d256a2d4ba8708f9f1737f85b0362f371f8.tar.gz
dotfiles-ff125d256a2d4ba8708f9f1737f85b0362f371f8.zip
Use shots for completion where possible
See https://github.com/tejr/shots.
-rw-r--r--bash/bashrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/bash/bashrc b/bash/bashrc
index 48f2ebd9..7052895e 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -86,6 +86,10 @@ stty -ixon
# Never beep at me.
setterm -bfreq 0
+# Use shots for hostname completion, if available.
+hash shots &>/dev/null && complete -C shots \
+ dig ftp host nc netcat ping telnet
+
# Use vi as my text editor, if available.
hash vi &>/dev/null && export EDITOR=vi