PKGBUILDs/extra/ghc/ghc
2014-05-04 15:03:37 +00:00

11 lines
277 B
Plaintext

_ghc()
{
local envs=`ghc --show-options`
# get the word currently being completed
local cur=${COMP_WORDS[$COMP_CWORD]}
# the resulting completions should be put into this array
COMPREPLY=( $( compgen -W "$envs" -- $cur ) )
}
complete -F _ghc -o default ghc