Add gitlab and github CLI completion to bash and zsh

This commit is contained in:
Evie Litherland-Smith 2023-03-06 13:51:33 +00:00
parent e178e2ba24
commit 68c99b31d4
2 changed files with 7 additions and 0 deletions

View file

@ -52,3 +52,6 @@ export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook bash)"
command -v starship > /dev/null 2>&1 && eval "$(starship init bash)"
source <(glab completion -s bash)
source <(gh completion -s bash)

4
.zshrc
View file

@ -53,3 +53,7 @@ export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
command -v direnv > /dev/null 2>&1 && eval "$(direnv hook 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