summaryrefslogtreecommitdiff
path: root/completions/dmesg
diff options
context:
space:
mode:
Diffstat (limited to 'completions/dmesg')
-rw-r--r--completions/dmesg9
1 files changed, 3 insertions, 6 deletions
diff --git a/completions/dmesg b/completions/dmesg
index 7d73bf3a..3d9bc662 100644
--- a/completions/dmesg
+++ b/completions/dmesg
@@ -22,12 +22,9 @@ _dmesg()
;;
esac
- if [[ $cur == -* ]]; then
- local opts=$( _parse_help "$1" )
- [[ $opts ]] || opts=$( _parse_usage "$1" )
- COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
- return
- fi
+ local opts=$( _parse_help "$1" )
+ [[ $opts ]] || opts=$( _parse_usage "$1" )
+ COMPREPLY=( $( compgen -W "$opts" -- "$cur" ) )
} &&
complete -F _dmesg dmesg