mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
feat: add support for bash
This commit is contained in:
parent
a80a252e39
commit
6fab752db5
|
|
@ -4,13 +4,15 @@ function _ghq () {
|
|||
|
||||
case $cword in
|
||||
1)
|
||||
COMPREPLY=( $(compgen -W "get list" -- $cur) );;
|
||||
COMPREPLY=( $(compgen -W "get list rm" -- $cur) );;
|
||||
2)
|
||||
case $prev in
|
||||
get)
|
||||
COMPREPLY=( $(compgen -W "$(ghq list --unique)" -- $cur) );;
|
||||
list)
|
||||
COMPREPLY=( $(compgen -W "$(ghq list)" -- $cur) );;
|
||||
rm)
|
||||
COMPREPLY=( $(compgen -W "$(ghq list)" -- $cur) );;
|
||||
esac;;
|
||||
*)
|
||||
COMPREPLY=( $(compgen -W "$(ls)" -- $cur) );;
|
||||
|
|
|
|||
Loading…
Reference in a new issue