mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
10 lines
277 B
Text
10 lines
277 B
Text
_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
|