summaryrefslogtreecommitdiff
path: root/Completion/Commands/_bash_completions
diff options
context:
space:
mode:
Diffstat (limited to 'Completion/Commands/_bash_completions')
-rw-r--r--Completion/Commands/_bash_completions7
1 files changed, 5 insertions, 2 deletions
diff --git a/Completion/Commands/_bash_completions b/Completion/Commands/_bash_completions
index 5f3adc1e0..548888138 100644
--- a/Completion/Commands/_bash_completions
+++ b/Completion/Commands/_bash_completions
@@ -25,16 +25,19 @@
# that will not have been overridden, so you should add '~' to the
# list of keys at the top of the for-loop.
+setopt localoptions nullglob rcexpandparam extendedglob
+unsetopt markdirs globsubst shwordsplit nounset ksharrays
+
local key=$KEYS[-1]
case $key in
'!') _main_complete _command_names
;;
- '$') compgen -E
+ '$') compadd - "${(@k)parameters[(R)*export*]}"
;;
'@') _main_complete _hosts
;;
- '/') _files
+ '/') _main_complete _files
;;
'~') _main_complete _users
;;