We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 541f7b1 commit c343c46Copy full SHA for c343c46
completions/function
@@ -8,7 +8,7 @@ _function()
8
if ((cword == 1)); then
9
COMPREPLY=($(compgen -A function -- "$cur"))
10
else
11
- COMPREPLY=("() $(type -- ${words[1]} | command sed -e 1,2d)")
+ COMPREPLY=("() $(type -- "${words[1]}" 2>/dev/null | command sed -e 1,2d)")
12
fi
13
} &&
14
complete -F _function function
0 commit comments