mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-09-19 22:08:32 +00:00
11 lines
277 B
Plaintext
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
|