Skip to content

Commit

Permalink
feat: add support for bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Okabe-Junya committed Jun 18, 2024
1 parent a80a252 commit 6fab752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion misc/bash/_ghq
Original file line number Diff line number Diff line change
Expand Up @@ -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) );;
Expand Down

0 comments on commit 6fab752

Please sign in to comment.