# 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 "$@"