summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2021-04-12 16:43:37 +0100
committerGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2021-04-12 16:43:37 +0100
commit81c91cbd0ae9fceaf88f53936bf5cf81956660a9 (patch)
treed4dfba76c0152a1ed8af920eaa8f4fbae075957b
parentmake my bashcomp actually work (diff)
downloaddotfiles-81c91cbd0ae9fceaf88f53936bf5cf81956660a9.tar.gz
dotfiles-81c91cbd0ae9fceaf88f53936bf5cf81956660a9.tar.bz2
dotfiles-81c91cbd0ae9fceaf88f53936bf5cf81956660a9.zip
fix dmount completion
-rw-r--r--.bash_completion.d/dmount.bashcomp2
1 files changed, 1 insertions, 1 deletions
diff --git a/.bash_completion.d/dmount.bashcomp b/.bash_completion.d/dmount.bashcomp
index adbd251..7299a9b 100644
--- a/.bash_completion.d/dmount.bashcomp
+++ b/.bash_completion.d/dmount.bashcomp
@@ -1,7 +1,7 @@
# -*- mode: sh -*-
_dmount_list() {
- COMPREPLY=( $(dmount --list) )
+ COMPREPLY=( $( compgen -W '$(dmount --list)' -- "$2" ) )
}
complete -F _dmount_list dmount