diff options
-rw-r--r-- | alias | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -131,7 +131,6 @@ alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to | |||
131 | export GITHUB_API='https://api.github.com' | 131 | export GITHUB_API='https://api.github.com' |
132 | export GITHUB_API_TOKEN="$(cat $SETTING_DIR/tokens/github 2>/dev/null)" | 132 | export GITHUB_API_TOKEN="$(cat $SETTING_DIR/tokens/github 2>/dev/null)" |
133 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" | 133 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" |
134 | alias github_token='xdg-open https://github.com/settings/tokens' | ||
135 | github() { | 134 | github() { |
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 | } |
149 | asset() { | 148 | github_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 | } |
152 | raw() { | 151 | github_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' | |||
158 | alias t='tig' | 157 | alias t='tig' |
159 | alias ts='tig status' | 158 | alias ts='tig status' |
160 | alias ta='tig --all' | 159 | alias ta='tig --all' |
161 | alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2.5.0/tig' | ||
162 | upload_tig() { | 160 | upload_tig() { |
163 | github-release.sh \ | 161 | github-release.sh \ |
164 | github_api_token=$GITHUB_API_TOKEN \ | 162 | github_api_token=$GITHUB_API_TOKEN \ |