From 6fab752db59b9e5a258619dfc72b75af250f2ed0 Mon Sep 17 00:00:00 2001 From: Junya Okabe Date: Wed, 19 Jun 2024 02:39:55 +0900 Subject: [PATCH] feat: add support for bash --- misc/bash/_ghq | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/misc/bash/_ghq b/misc/bash/_ghq index 48326280..12eb1535 100644 --- a/misc/bash/_ghq +++ b/misc/bash/_ghq @@ -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) );;