summaryrefslogtreecommitdiff
path: root/completions/dmesg
diff options
context:
space:
mode:
authorDavid Paleino <dapal@debian.org>2013-11-04 17:58:57 +0100
committerDavid Paleino <dapal@debian.org>2013-11-04 17:58:57 +0100
commit059a87a5936cfebfd2d71ab8057002cafb2ea051 (patch)
tree7fafa4bb39a443ba4d49fccc852193adfea93564 /completions/dmesg
parent30649a02707d24744853f84946f744fdcf7c2757 (diff)
downloadbash-completion-059a87a5936cfebfd2d71ab8057002cafb2ea051.tar.gz
Imported Upstream version 2.1upstream/2.1
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