Merge branch 'bash-completion'
This commit is contained in:
commit
243b1352a7
11
.bash-completion
Normal file
11
.bash-completion
Normal file
@ -0,0 +1,11 @@
|
||||
_ghcup()
|
||||
{
|
||||
local cur
|
||||
COMPREPLY=()
|
||||
cur="${COMP_WORDS[COMP_CWORD]}"
|
||||
if [[ ${#COMP_WORDS[*]} -le 2 ]]; then
|
||||
COMPREPLY=($(compgen -W "$(ghcup --list-commands)" -- $cur))
|
||||
fi
|
||||
return 0
|
||||
} &&
|
||||
complete -F _ghcup ghcup
|
Loading…
Reference in New Issue
Block a user