Add gitlab and github CLI completion to bash and zsh
This commit is contained in:
parent
e178e2ba24
commit
68c99b31d4
3
.bashrc
3
.bashrc
|
@ -52,3 +52,6 @@ export PYENV_ROOT="$HOME/.pyenv"
|
||||||
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook bash)"
|
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook bash)"
|
||||||
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"
|
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"
|
||||||
|
|
||||||
|
source <(glab completion -s bash)
|
||||||
|
source <(gh completion -s bash)
|
||||||
|
|
4
.zshrc
4
.zshrc
|
@ -53,3 +53,7 @@ export PYENV_ROOT="$HOME/.pyenv"
|
||||||
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook zsh)"
|
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook zsh)"
|
||||||
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
|
command -v starship > /dev/null 2>&1 && eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
autoload -U compinit; compinit
|
||||||
|
source <(glab completion -s zsh); compdef _glab glab
|
||||||
|
source <(gh completion -s zsh); compdef _gh gh
|
||||||
|
|
Loading…
Reference in a new issue