# shellcheck shell=bash GH_HOST="${GH_HOST:-github.com}" GH_TOKEN=$(sed -n "s#https://[^:]*:\([^@]*\)@${GH_HOST}#\1#p" "$HOME/.config/git/credentials") export GH_TOKEN exec gh "$@"