diff options
-rw-r--r-- | alias | 15 | ||||
-rw-r--r-- | tigrc | 6 |
2 files changed, 13 insertions, 8 deletions
@@ -15,6 +15,7 @@ alias log="cat $SETTING_DIR/log | grep '`date +'%b %d'`'" | |||
15 | alias v='vim' | 15 | alias v='vim' |
16 | alias sv='sudo vim' | 16 | alias sv='sudo vim' |
17 | alias vl="vim -c ':CtrlPMRU<CR>'" | 17 | alias vl="vim -c ':CtrlPMRU<CR>'" |
18 | alias ve="vim -c ':e! ~/.vim_runtime/my_configs.vim'" | ||
18 | alias vr='vim -R' | 19 | alias vr='vim -R' |
19 | alias vu='vim -u NONE' | 20 | alias vu='vim -u NONE' |
20 | alias vv='vim ~/vimwiki/index.md' | 21 | alias vv='vim ~/vimwiki/index.md' |
@@ -108,6 +109,7 @@ alias cdD='cd ~/Documents' | |||
108 | alias cdP='cd ~/Pictures' | 109 | alias cdP='cd ~/Pictures' |
109 | alias cdV='cd ~/Videos' | 110 | alias cdV='cd ~/Videos' |
110 | alias cdb='cd ~/git/bashblog' | 111 | alias cdb='cd ~/git/bashblog' |
112 | alias cdmd='cd ~/git/map/deploy' | ||
111 | 113 | ||
112 | # git | 114 | # git |
113 | unalias gc &> /dev/null # override zsh plugin alias | 115 | unalias gc &> /dev/null # override zsh plugin alias |
@@ -200,8 +202,8 @@ _lf_cd() { | |||
200 | alias df='df -h' | 202 | alias df='df -h' |
201 | 203 | ||
202 | # docker | 204 | # docker |
203 | alias dp='docker ps' | 205 | alias dps='docker ps' |
204 | alias di='docker images' | 206 | alias dis='docker images' |
205 | alias dc='docker-compose run --rm' | 207 | alias dc='docker-compose run --rm' |
206 | alias ds='docker stop' | 208 | alias ds='docker stop' |
207 | alias drm='docker rm `docker ps -aq`' | 209 | alias drm='docker rm `docker ps -aq`' |
@@ -250,8 +252,9 @@ alias sample_mbtiles='curl -O https://docs.mapbox.com/help/data/trails.mbtiles' | |||
250 | alias sample_kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml' | 252 | alias sample_kml='curl -O https://docs.mapbox.com/help/data/farmers_markets.kml' |
251 | alias sample_osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' | 253 | alias sample_osm='curl https://api.openstreetmap.org/api/0.6/node/3428095932' |
252 | alias sample_image='curl -O https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_100kB.jpg' | 254 | alias sample_image='curl -O https://file-examples-com.github.io/uploads/2017/10/file_example_JPG_100kB.jpg' |
253 | alias sample_proto='curl -O https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto' | 255 | alias proto_mvt='curl -O https://raw.githubusercontent.com/mapbox/vector-tile-spec/master/2.1/vector_tile.proto' |
254 | alias sample_proto_osm='curl -O https://raw.githubusercontent.com/openstreetmap/OSM-binary/master/src/osmformat.proto' | 256 | alias proto_osm='curl -O https://raw.githubusercontent.com/openstreetmap/OSM-binary/master/src/osmformat.proto' |
257 | alias proto_geobuf='curl -O https://raw.githubusercontent.com/mapbox/geobuf/master/geobuf.proto' | ||
255 | taiwan_dem() { | 258 | taiwan_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' | |||
325 | alias we='weechat' | 328 | alias we='weechat' |
326 | alias p8='ping 8.8.8.8' | 329 | alias p8='ping 8.8.8.8' |
327 | alias pg='ping google.com' | 330 | alias pg='ping google.com' |
331 | pbf() { | ||
332 | protoc --decode_raw | ||
333 | } | ||
328 | mvt_decode() { | 334 | mvt_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' | |||
391 | alias cdT='cd ~/git/tilemaker' | 397 | alias cdT='cd ~/git/tilemaker' |
392 | alias cdngx='cd /etc/nginx' | 398 | alias cdngx='cd /etc/nginx' |
393 | alias stew='cd ~/git/mapstew' | 399 | alias stew='cd ~/git/mapstew' |
394 | alias sshs='ssh admin@52.199.215.221' | ||
395 | 400 | ||
396 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 401 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |
397 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' | 402 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' |
@@ -161,9 +161,9 @@ bind main gB !?git rebase --rebase-merges -i %(commit) | |||
161 | bind main ! ?git revert %(commit) | 161 | bind main ! ?git revert %(commit) |
162 | 162 | ||
163 | # tag | 163 | # tag |
164 | bind generic Tn @git tag "%(prompt Enter tag name: )" %(commit) | 164 | bind generic Tn @git tag "%(prompt New tag, please enter tag name: )" %(commit) |
165 | bind generic TN !git tag "%(prompt Enter tag name: )" %(commit) -a | 165 | bind generic TN !git tag "%(prompt Annotated tag, please enter the name: )" %(commit) -a |
166 | bind generic TSN !git tag "%(prompt Enter tag name: )" %(commit) -s | 166 | bind generic TSN !git tag "%(prompt Signed Annotated tag, please enter the name: )" %(commit) -s |
167 | bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(Rename tag to? )" %(commit)' | 167 | bind generic Tm @sh -c 'git tag -d %(tag) && git tag "%(Rename tag to? )" %(commit)' |
168 | bind generic TM @sh -c 'git cat-file -p %(tag) |\ | 168 | bind generic TM @sh -c 'git cat-file -p %(tag) |\ |
169 | sed -n \'6,$p\' |\ | 169 | sed -n \'6,$p\' |\ |