summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@broadbean.com>2021-04-12 16:43:37 +0100
committerdakkar <dakkar@thenautilus.net>2021-09-05 12:49:11 +0100
commit6259bead9454dd3174f60c568ab0592a13e891d5 (patch)
treeb46f19e3cdd13017da5da11d21ff3efd70c9abfa
parentmake my bashcomp actually work (diff)
downloaddotfiles-6259bead9454dd3174f60c568ab0592a13e891d5.tar.gz
dotfiles-6259bead9454dd3174f60c568ab0592a13e891d5.tar.bz2
dotfiles-6259bead9454dd3174f60c568ab0592a13e891d5.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