Files
nix/hosts/common/configs/user/console/git/glab.sh
2025-09-01 12:47:26 +01:00

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