add gitlab aliases

This commit is contained in:
Ted Kulp
2024-02-27 07:53:23 -05:00
parent 600ae9de5f
commit ad4634cb01

22
.config/zsh/gitlab.zsh Normal file
View File

@@ -0,0 +1,22 @@
alias glvw="glab repo view --web"
alias glmr="glab mr create --fill --squash-before-merge --remove-source-branch --allow-collaboration"
#compdef gitlab-ci-local
###-begin-gitlab-ci-local-completions-###
#
# yargs command completion script
#
# Installation: /opt/homebrew/bin/gitlab-ci-local completion >> ~/.zshrc
# or /opt/homebrew/bin/gitlab-ci-local completion >> ~/.zprofile on OSX.
#
_gitlab-ci-local_yargs_completions()
{
local reply
local si=$IFS
IFS=$'
' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" /opt/homebrew/bin/gitlab-ci-local --get-yargs-completions "${words[@]}"))
IFS=$si
_describe 'values' reply
}
compdef _gitlab-ci-local_yargs_completions gitlab-ci-local
###-end-gitlab-ci-local-completions-###