summaryrefslogtreecommitdiff
path: root/completions/sh
diff options
context:
space:
mode:
Diffstat (limited to 'completions/sh')
-rw-r--r--completions/sh14
1 files changed, 3 insertions, 11 deletions
diff --git a/completions/sh b/completions/sh
index 9c7ca020..b70e53e2 100644
--- a/completions/sh
+++ b/completions/sh
@@ -1,11 +1,9 @@
-# POSIX sh(1) completion
+# POSIX sh(1) completion -*- shell-script -*-
-have sh &&
_sh()
{
- COMPREPLY=()
- local cur prev
- _get_comp_words_by_ref cur prev
+ local cur prev words cword
+ _init_completion || return
case $prev in
-c)
@@ -32,10 +30,4 @@ _sh()
} &&
complete -F _sh sh
-# Local variables:
-# mode: shell-script
-# sh-basic-offset: 4
-# sh-indent-comment: t
-# indent-tabs-mode: nil
-# End:
# ex: ts=4 sw=4 et filetype=sh