diff options
| author | typebrook <typebrook@gmail.com> | 2020-03-03 10:12:58 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2020-03-03 10:12:58 +0800 |
| commit | 8bf54a6e42aa231d730d7241ca1b7b908343cefa (patch) | |
| tree | 7f966d90628693d584e434e71df0f7a3bb0131cf /alias | |
| parent | 00b136155183ae522ca458e540a8cf29bf525e74 (diff) | |
update
Diffstat (limited to 'alias')
| -rw-r--r-- | alias | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -89,6 +89,9 @@ alias github_token='xdg-open https://github.com/settings/tokens' | |||
| 89 | github() { | 89 | github() { |
| 90 | xdg-open https://github.com/$1/$2 | 90 | xdg-open https://github.com/$1/$2 |
| 91 | } | 91 | } |
| 92 | github_api() { | ||
| 93 | curl --header "Authorization: token $GITHUB_API_TOKEN" $GITHUB_API/$1 | ||
| 94 | } | ||
| 92 | gcg() { | 95 | gcg() { |
| 93 | git clone git@github.com:$1/$2.git && cd $(basename $2) | 96 | git clone git@github.com:$1/$2.git && cd $(basename $2) |
| 94 | } | 97 | } |