mirror of
https://github.com/tedkulp/dotfiles
synced 2026-03-04 13:29:57 -05:00
add gitlab aliases
This commit is contained in:
22
.config/zsh/gitlab.zsh
Normal file
22
.config/zsh/gitlab.zsh
Normal 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-###
|
||||
Reference in New Issue
Block a user