diff options
| -rw-r--r-- | alias | 7 | ||||
| -rw-r--r-- | scripts/osm/osm | 2 |
2 files changed, 5 insertions, 4 deletions
| @@ -69,7 +69,9 @@ alias cdV='cd ~/Videos' | |||
| 69 | alias cdP='cd ~/Pictures' | 69 | alias cdP='cd ~/Pictures' |
| 70 | 70 | ||
| 71 | # github | 71 | # github |
| 72 | alias hub="GITHUB_TOKEN=$(cat $SETTING_DIR/tokens/github) hub" | 72 | GITHUB_API='https://api.github.com' |
| 73 | GITHUB_API_TOKEN=$(cat $SETTING_DIR/tokens/github 2>/dev/null) | ||
| 74 | alias hub="GITHUB_TOKEN=$GITHUB_API_TOKEN hub" | ||
| 73 | alias github_token='xdg-open https://github.com/settings/tokens' | 75 | alias github_token='xdg-open https://github.com/settings/tokens' |
| 74 | github() { | 76 | github() { |
| 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' | |||
| 125 | alias cdgw='cd .github/workflows' | 127 | alias cdgw='cd .github/workflows' |
| 126 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule | 128 | alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule |
| 127 | github_release_asset() { | 129 | github_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' | |||
| 263 | alias cdm='cd ~/git/sharkbig.github.io/rescue' | 265 | alias cdm='cd ~/git/sharkbig.github.io/rescue' |
| 264 | alias cdmw='cd ~/git/sharkbig.github.io/.github/workflows' | 266 | alias cdmw='cd ~/git/sharkbig.github.io/.github/workflows' |
| 265 | 267 | ||
| 266 | GITHUB_API='https://api.github.com' | ||
| 267 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 268 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |
| 268 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' | 269 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' |
| 269 | TAIPEI_BBOX='121.346,24.926,121.676,25.209' | 270 | TAIPEI_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 @@ | |||
| 4 | export OSM_SERVER=https://api.openstreetmap.org | 4 | export OSM_SERVER=https://api.openstreetmap.org |
| 5 | 5 | ||
| 6 | export OSM_API=$OSM_SERVER/api/0.6 | 6 | export OSM_API=$OSM_SERVER/api/0.6 |
| 7 | export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm) | 7 | export OSM_USER_PASSWD=$(cat $SETTING_DIR/tokens/osm 2>/dev/null) |
| 8 | 8 | ||
| 9 | FILENAME=$0 | 9 | FILENAME=$0 |
| 10 | 10 | ||