Skip to content
Snippets Groups Projects

Add basic bash-completion wrt #109

Merged Julian Ospald requested to merge bash-completion into master
2 files
+ 23
0
Compare changes
  • Side-by-side
  • Inline
Files
2
.bash-completion 0 → 100644
+ 11
0
 
_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