From 62cf0d463e9171712ff3e4dcc18293adf50a1a94 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 28 Jan 2017 20:56:52 +1300 Subject: Add host completion for some common tools --- bash/bash_completion.d/dig.bash | 2 ++ bash/bash_completion.d/host.bash | 2 ++ bash/bash_completion.d/netcat.bash | 2 ++ bash/bash_completion.d/ping.bash | 2 ++ bash/bash_completion.d/telnet.bash | 2 ++ 5 files changed, 10 insertions(+) create mode 100644 bash/bash_completion.d/dig.bash create mode 100644 bash/bash_completion.d/host.bash create mode 100644 bash/bash_completion.d/netcat.bash create mode 100644 bash/bash_completion.d/ping.bash create mode 100644 bash/bash_completion.d/telnet.bash diff --git a/bash/bash_completion.d/dig.bash b/bash/bash_completion.d/dig.bash new file mode 100644 index 00000000..bdbd1cd8 --- /dev/null +++ b/bash/bash_completion.d/dig.bash @@ -0,0 +1,2 @@ +# Complete dig(1) with hostnames +complete -A hostname dig diff --git a/bash/bash_completion.d/host.bash b/bash/bash_completion.d/host.bash new file mode 100644 index 00000000..e49e76c4 --- /dev/null +++ b/bash/bash_completion.d/host.bash @@ -0,0 +1,2 @@ +# Complete host(1) with hostnames +complete -A hostname host diff --git a/bash/bash_completion.d/netcat.bash b/bash/bash_completion.d/netcat.bash new file mode 100644 index 00000000..be4e885f --- /dev/null +++ b/bash/bash_completion.d/netcat.bash @@ -0,0 +1,2 @@ +# Complete nc(1) with hostnames +complete -A hostname netcat nc diff --git a/bash/bash_completion.d/ping.bash b/bash/bash_completion.d/ping.bash new file mode 100644 index 00000000..8dc27673 --- /dev/null +++ b/bash/bash_completion.d/ping.bash @@ -0,0 +1,2 @@ +# Complete ping(8) with hostnames +complete -A hostname ping diff --git a/bash/bash_completion.d/telnet.bash b/bash/bash_completion.d/telnet.bash new file mode 100644 index 00000000..eacf552d --- /dev/null +++ b/bash/bash_completion.d/telnet.bash @@ -0,0 +1,2 @@ +# Complete telnet(1) with hostnames +complete -A hostname telnet -- cgit v1.2.3