aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/completion.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-31 15:12:53 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-31 15:12:53 +1200
commit80f93b65d875adc50b41af617e013763cda6a2d1 (patch)
tree9bca191a22ea7c9da17c07a42d18f0ac653992b5 /bash/bashrc.d/completion.bash
parentFix comment (diff)
downloaddotfiles-80f93b65d875adc50b41af617e013763cda6a2d1.tar.gz
dotfiles-80f93b65d875adc50b41af617e013763cda6a2d1.zip
Add command completion for sudo
Diffstat (limited to 'bash/bashrc.d/completion.bash')
-rw-r--r--bash/bashrc.d/completion.bash3
1 files changed, 3 insertions, 0 deletions
diff --git a/bash/bashrc.d/completion.bash b/bash/bashrc.d/completion.bash
index d0b2c055..a921770b 100644
--- a/bash/bashrc.d/completion.bash
+++ b/bash/bashrc.d/completion.bash
@@ -16,6 +16,9 @@ complete -A setopt set
# shopt with shell options
complete -A shopt shopt
+# sudo with commands (and not files)
+complete -c sudo
+
# unset with shell variables and functions
complete -v -A function unset