9 lines
206 B
Bash
9 lines
206 B
Bash
# shellcheck shell=bash
|
|
|
|
GITLAB_HOST="${GITLAB_HOST:-gitlab.com}"
|
|
|
|
GITLAB_TOKEN=$(sed -n "s#https://[^:]*:\([^@]*\)@${GITLAB_HOST}#\1#p" "$HOME/.config/git/credentials")
|
|
export GITLAB_TOKEN
|
|
|
|
exec glab "$@"
|