aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-06-22 20:36:25 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-06-22 20:36:25 +0800
commit17c5c470073701346d05524de3718340e606ab35 (patch)
treee7fd45777bbaafa59c87567f861d86cf8e8ef149
parentfe3d9f1f9ce89d880ec5cc8ddcf8d9fdc2f1d11c (diff)
update
-rw-r--r--alias15
-rw-r--r--tigrc6
2 files changed, 13 insertions, 8 deletions
diff --git a/alias b/alias
index ffdef6a..ab8b5a3 100644
--- a/alias
+++ b/alias
@@ -15,6 +15,7 @@ alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'"
15alias v='vim' 15alias v='vim'
16alias sv='sudo vim' 16alias sv='sudo vim'
17alias vl="vim -c ':CtrlPMRU<CR>'" 17alias vl="vim -c ':CtrlPMRU<CR>'"
18alias ve="vim -c ':e! ~/.vim_runtime/my_configs.vim'"
18alias vr='vim -R' 19alias vr='vim -R'
19alias vu='vim -u NONE' 20alias vu='vim -u NONE'
20alias vv='vim ~/vimwiki/index.md' 21alias vv='vim ~/vimwiki/index.md'
@@ -108,6 +109,7 @@ alias cdD='cd ~/Documents'
108alias cdP='cd ~/Pictures' 109alias cdP='cd ~/Pictures'
109alias cdV='cd ~/Videos' 110alias cdV='cd ~/Videos'
110alias cdb='cd ~/git/bashblog' 111alias cdb='cd ~/git/bashblog'
112alias cdmd='cd ~/git/map/deploy'
111 113
112# git 114# git
113unalias gc &> /dev/null # override zsh plugin alias 115unalias gc &> /dev/null # override zsh plugin alias
@@ -200,8 +202,8 @@ _lf_cd() {
200alias df='df -h' 202alias df='df -h'
201 203
202# docker 204# docker
203alias dp='docker ps' 205alias dps='docker ps'
204alias di='docker images' 206alias dis='docker images'
205alias dc='docker-compose run --rm' 207alias dc='docker-compose run --rm'
206alias ds='docker stop' 208alias ds='docker stop'
207alias drm='docker rm `docker ps -aq`' 209alias drm='docker rm `docker ps -aq`'
@@ -250,8 +252,9 @@ alias sample_mbtiles='curl -O https://docs.mapbox.com/help/data/trails.mbtiles'
250alias sample_kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml' 252alias sample_kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml'
251alias sample_osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' 253alias sample_osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932'
252alias sample_image='curl -O https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_100kB.jpg' 254alias sample_image='curl -O https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_100kB.jpg'
253alias sample_proto='curl -O https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto' 255alias proto_mvt='curl -O https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto'
254alias sample_proto_osm='curl -O https://raw.githubusercontent.com/openstreetmap/OSM-binary/master/src/osmformat.proto' 256alias proto_osm='curl -O https://raw.githubusercontent.com/openstreetmap/OSM-binary/master/src/osmformat.proto'
257alias proto_geobuf='curl -O https://raw.githubusercontent.com/mapbox/geobuf/master/geobuf.proto'
255taiwan_dem() { 258taiwan_dem() {
256 <<<"http://dtm.moi.gov.tw/不分幅_全台及澎湖.zip" perl -lpe 's/([^A-Za-z0-9.\/:])/sprintf("%%%02X", ord($1))/seg' |\ 259 <<<"http://dtm.moi.gov.tw/不分幅_全台及澎湖.zip" perl -lpe 's/([^A-Za-z0-9.\/:])/sprintf("%%%02X", ord($1))/seg' |\
257 xargs curl -Lo taiwan_dem.zip 260 xargs curl -Lo taiwan_dem.zip
@@ -325,6 +328,9 @@ alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm'
325alias we='weechat' 328alias we='weechat'
326alias p8='ping 8.8.8.8' 329alias p8='ping 8.8.8.8'
327alias pg='ping google.com' 330alias pg='ping google.com'
331pbf() {
332 protoc --decode_raw
333}
328mvt_decode() { 334mvt_decode() {
329 if [[ ! -t 0 ]]; then 335 if [[ ! -t 0 ]]; then
330 tmp=$(mktemp) 336 tmp=$(mktemp)
@@ -391,7 +397,6 @@ alias cdma='cd ~/git/mapstew-android'
391alias cdT='cd ~/git/tilemaker' 397alias cdT='cd ~/git/tilemaker'
392alias cdngx='cd /etc/nginx' 398alias cdngx='cd /etc/nginx'
393alias stew='cd ~/git/mapstew' 399alias stew='cd ~/git/mapstew'
394alias sshs='ssh admin@52.199.215.221'
395 400
396TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' 401TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305'
397TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' 402TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312'
diff --git a/tigrc b/tigrc
index 59c6117..2eeb6ca 100644
--- a/tigrc
+++ b/tigrc
@@ -161,9 +161,9 @@ bind main gB !?git rebase --rebase-merges -i %(commit)
161bind main ! ?git revert %(commit) 161bind main ! ?git revert %(commit)
162 162
163# tag 163# tag
164bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit) 164bind generic Tn @git tag "%(prompt New tag, please enter tag name: )" %(commit)
165bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a 165bind generic TN !git tag "%(prompt Annotated tag, please enter the name: )" %(commit) -a
166bind generic TSN !git tag "%(prompt Enter tag name: )" %(commit) -s 166bind generic TSN !git tag "%(prompt Signed Annotated tag, please enter the name: )" %(commit) -s
167bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(Rename tag to? )" %(commit)' 167bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(Rename tag to? )" %(commit)'
168bind generic TM @sh -c 'git cat-file -p %(tag) |\ 168bind generic TM @sh -c 'git cat-file -p %(tag) |\
169 sed -n \'6,$p\' |\ 169 sed -n \'6,$p\' |\