From 8bf54a6e42aa231d730d7241ca1b7b908343cefa Mon Sep 17 00:00:00 2001 From: typebrook Date: Tue, 3 Mar 2020 10:12:58 +0800 Subject: update --- alias | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alias') diff --git a/alias b/alias index c32500b..053628e 100644 --- a/alias +++ b/alias @@ -89,6 +89,9 @@ alias github_token='xdg-open https://github.com/settings/tokens' github() { xdg-open https://github.com/$1/$2 } +github_api() { + curl --header "Authorization: token $GITHUB_API_TOKEN" $GITHUB_API/$1 +} gcg() { git clone git@github.com:$1/$2.git && cd $(basename $2) } -- cgit v1.2.3-70-g09d2