aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-08-02 20:55:11 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-08-02 20:55:11 +0800
commit2c6f6f675f33004f5ed99c094ba059d7c5b3f52e (patch)
tree278c2b80ac433f8881577263cee77512651f7ad0 /alias
parentaed74362f423412bb47f1fb27108d23125b078e8 (diff)
update
Diffstat (limited to 'alias')
-rw-r--r--alias8
1 files changed, 3 insertions, 5 deletions
diff --git a/alias b/alias
index 535b4e1..6d805b5 100644
--- a/alias
+++ b/alias
@@ -131,7 +131,6 @@ alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to
131export GITHUB_API='https://api.github.com' 131export GITHUB_API='https://api.github.com'
132export GITHUB_API_TOKEN="$(cat $SETTING_DIR/tokens/github 2>/dev/null)" 132export GITHUB_API_TOKEN="$(cat $SETTING_DIR/tokens/github 2>/dev/null)"
133alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" 133alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub"
134alias github_token='xdg-open https://github.com/settings/tokens'
135github() { 134github() {
136 xdg-open https://github.com/$1/$2 135 xdg-open https://github.com/$1/$2
137} 136}
@@ -146,11 +145,11 @@ release() {
146 command="github-release.sh\n github_api_token=$GITHUB_API_TOKEN\n repo=typebrook/mapstew\n tag=daily-taiwan-pbf\n type=asset\n filename=taiwan-latest.osm.pbf\n action=upload|overwrite|rename|delete\n extra=" 145 command="github-release.sh\n github_api_token=$GITHUB_API_TOKEN\n repo=typebrook/mapstew\n tag=daily-taiwan-pbf\n type=asset\n filename=taiwan-latest.osm.pbf\n action=upload|overwrite|rename|delete\n extra="
147 prompt "$command" 146 prompt "$command"
148} 147}
149asset() { 148github_asset() {
150 curl -LO https://github.com/$1/$2/releases/download/$3/$4 149 curl -LO https://github.com/$1/$2/releases/download/$3/$4
151} 150}
152raw() { 151github_raw() {
153 curl -O https://raw.githubusercontent.com/$1/$2/$3 152 curl -O https://raw.githubusercontent.com/$1/$2/$3
154} 153}
155 154
156# tig 155# tig
@@ -158,7 +157,6 @@ alias cdt='cd ~/git/tig'
158alias t='tig' 157alias t='tig'
159alias ts='tig status' 158alias ts='tig status'
160alias ta='tig --all' 159alias ta='tig --all'
161alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2.5.0/tig'
162upload_tig() { 160upload_tig() {
163 github-release.sh \ 161 github-release.sh \
164 github_api_token=$GITHUB_API_TOKEN \ 162 github_api_token=$GITHUB_API_TOKEN \