summaryrefslogtreecommitdiff
path: root/extra/ghc/ghc
blob: 5e1e189c54b3ceb284ffc90b5b14db1d5194ef37 (plain)
1
2
3
4
5
6
7
8
9
10
_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