diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-28 20:56:52 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-01-28 20:56:52 +1300 |
commit | 62cf0d463e9171712ff3e4dcc18293adf50a1a94 (patch) | |
tree | 87f35f9410424c1c00d805d7715e47bf11083ba5 /bash/bash_completion.d | |
parent | Start using Bash host completion (diff) | |
download | dotfiles-62cf0d463e9171712ff3e4dcc18293adf50a1a94.tar.gz dotfiles-62cf0d463e9171712ff3e4dcc18293adf50a1a94.zip |
Add host completion for some common tools
Diffstat (limited to 'bash/bash_completion.d')
-rw-r--r-- | bash/bash_completion.d/dig.bash | 2 | ||||
-rw-r--r-- | bash/bash_completion.d/host.bash | 2 | ||||
-rw-r--r-- | bash/bash_completion.d/netcat.bash | 2 | ||||
-rw-r--r-- | bash/bash_completion.d/ping.bash | 2 | ||||
-rw-r--r-- | bash/bash_completion.d/telnet.bash | 2 |
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 |