aboutsummaryrefslogtreecommitdiff
path: root/misc/bash/completion.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/bash/completion.sh')
-rw-r--r--misc/bash/completion.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/bash/completion.sh b/misc/bash/completion.sh
index 0af90d8c1..8fc224792 100644
--- a/misc/bash/completion.sh
+++ b/misc/bash/completion.sh
@@ -7,8 +7,10 @@ function _complete_nix {
local completion=${line%% *}
if [[ -z $have_type ]]; then
have_type=1
- if [[ $completion = filenames ]]; then
+ if [[ $completion == filenames ]]; then
compopt -o filenames
+ elif [[ $completion == attrs ]]; then
+ compopt -o nospace
fi
else
COMPREPLY+=("$completion")