summaryrefslogtreecommitdiffstats
path: root/bash-completion/lslocks
diff options
context:
space:
mode:
Diffstat (limited to 'bash-completion/lslocks')
-rw-r--r--bash-completion/lslocks30
1 files changed, 13 insertions, 17 deletions
diff --git a/bash-completion/lslocks b/bash-completion/lslocks
index 0fd0acd00..4ca1e6b6e 100644
--- a/bash-completion/lslocks
+++ b/bash-completion/lslocks
@@ -31,23 +31,19 @@ _lslocks_module()
return 0
;;
esac
- case $cur in
- -*)
- OPTS="--pid
- --json
- --output
- --noheadings
- --raw
- --notruncate
- --help
- --version"
- COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
- return 0
- ;;
- esac
- local IFS=$'\n'
- compopt -o filenames
- COMPREPLY=( $(compgen -f -- $cur) )
+ OPTS="
+ --json
+ --noinaccessible
+ --noheadings
+ --output
+ --pid
+ --raw
+ --notruncate
+ --help
+ --version
+ "
+ COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
return 0
+
}
complete -F _lslocks_module lslocks