aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias7
-rw-r--r--scripts/osm/osm2
2 files changed, 5 insertions, 4 deletions
diff --git a/alias b/alias
index 262f07c..8f4a9ca 100644
--- a/alias
+++ b/alias
@@ -69,7 +69,9 @@ alias cdV='cd ~/Videos'
69alias cdP='cd ~/Pictures' 69alias cdP='cd ~/Pictures'
70 70
71# github 71# github
72alias hub="GITHUB_TOKEN=$(cat $SETTING_DIR/tokens/github) hub" 72GITHUB_API='https://api.github.com'
73GITHUB_API_TOKEN=$(cat $SETTING_DIR/tokens/github 2>/dev/null)
74alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub"
73alias github_token='xdg-open https://github.com/settings/tokens' 75alias github_token='xdg-open https://github.com/settings/tokens'
74github() { 76github() {
75 xdg-open https://github.com/$1/$2 77 xdg-open https://github.com/$1/$2
@@ -125,7 +127,7 @@ alias gls='git log -S'
125alias cdgw='cd .github/workflows' 127alias cdgw='cd .github/workflows'
126alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule 128alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule
127github_release_asset() { 129github_release_asset() {
128 command="upload-github-release-asset.sh\n github_api_token=$(cat ~/settings/tokens/github)\n owner=typebrook\n repo=tig\n tag=LATEST\n filename=$(which tig)\n overwrite=false" 130 command="upload-github-release-asset.sh\n github_api_token=$GITHUB_API_TOKEN\n owner=typebrook\n repo=tig\n tag=LATEST\n filename=$(which tig)\n overwrite=false"
129 prompt "$command" 131 prompt "$command"
130} 132}
131 133
@@ -263,7 +265,6 @@ alias cdand='cd ~/git/sample'
263alias cdm='cd ~/git/sharkbig.github.io/rescue' 265alias cdm='cd ~/git/sharkbig.github.io/rescue'
264alias cdmw='cd ~/git/sharkbig.github.io/.github/workflows' 266alias cdmw='cd ~/git/sharkbig.github.io/.github/workflows'
265 267
266GITHUB_API='https://api.github.com'
267TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' 268TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305'
268TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' 269TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312'
269TAIPEI_BBOX='121.346,24.926,121.676,25.209' 270TAIPEI_BBOX='121.346,24.926,121.676,25.209'
diff --git a/scripts/osm/osm b/scripts/osm/osm
index 671d639..a595fb7 100644
--- a/scripts/osm/osm
+++ b/scripts/osm/osm
@@ -4,7 +4,7 @@
4export OSM_SERVER=https://api.openstreetmap.org 4export OSM_SERVER=https://api.openstreetmap.org
5 5
6export OSM_API=$OSM_SERVER/api/0.6 6export OSM_API=$OSM_SERVER/api/0.6
7export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm) 7export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm 2>/dev/null)
8 8
9FILENAME=$0 9FILENAME=$0
10 10