aboutsummaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-01-28 20:56:52 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-01-28 20:56:52 +1300
commit62cf0d463e9171712ff3e4dcc18293adf50a1a94 (patch)
tree87f35f9410424c1c00d805d7715e47bf11083ba5 /bash
parentStart using Bash host completion (diff)
downloaddotfiles-62cf0d463e9171712ff3e4dcc18293adf50a1a94.tar.gz
dotfiles-62cf0d463e9171712ff3e4dcc18293adf50a1a94.zip
Add host completion for some common tools
Diffstat (limited to 'bash')
-rw-r--r--bash/bash_completion.d/dig.bash2
-rw-r--r--bash/bash_completion.d/host.bash2
-rw-r--r--bash/bash_completion.d/netcat.bash2
-rw-r--r--bash/bash_completion.d/ping.bash2
-rw-r--r--bash/bash_completion.d/telnet.bash2
5 files changed, 10 insertions, 0 deletions
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