diff options
author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-29 18:19:03 +0800 |
---|---|---|
committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-03-29 18:19:03 +0800 |
commit | bd181336587e55a58550bb9305cbe862e8f83e96 (patch) | |
tree | ca030375c109ebefd10b6a7a0da145d3e1c973b6 | |
parent | 2643c7d5fbc0873b20ebe212c5e3497b87db0226 (diff) |
update
-rw-r--r-- | alias | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -35,7 +35,8 @@ alias gl='gist last' | |||
35 | unalias gg &>/dev/null | 35 | unalias gg &>/dev/null |
36 | alias gg='gist grep' | 36 | alias gg='gist grep' |
37 | 37 | ||
38 | # shell | 38 | # unix |
39 | alias chmodx='sudo chmod +x' | ||
39 | alias s='sudo systemctl' | 40 | alias s='sudo systemctl' |
40 | alias j='sudo journalctl -xe' | 41 | alias j='sudo journalctl -xe' |
41 | alias path="echo $PATH" | 42 | alias path="echo $PATH" |
@@ -207,6 +208,7 @@ drb() { | |||
207 | } | 208 | } |
208 | 209 | ||
209 | # ssh | 210 | # ssh |
211 | alias cdssh='cd ~/.ssh' | ||
210 | alias ptt='ssh bbsu@ptt.cc' | 212 | alias ptt='ssh bbsu@ptt.cc' |
211 | alias topo='ssh topo.tw' | 213 | alias topo='ssh topo.tw' |
212 | alias geothings-test='ssh geothings@test.geothings.tw' | 214 | alias geothings-test='ssh geothings@test.geothings.tw' |
@@ -350,7 +352,7 @@ tt() { | |||
350 | ( cd ~/.task && git add --all && git commit -m 'update' && git push origin & ) &>/dev/null | 352 | ( cd ~/.task && git add --all && git commit -m 'update' && git push origin & ) &>/dev/null |
351 | } | 353 | } |
352 | 354 | ||
353 | # upload | 355 | # upload with 0x0.st |
354 | up() { | 356 | up() { |
355 | curl -F"file=@${1}" http://0x0.st | 357 | curl -F"file=@${1}" http://0x0.st |
356 | } | 358 | } |
@@ -358,6 +360,12 @@ short() { | |||
358 | curl -F"shorten=${1}" http://0x0.st | 360 | curl -F"shorten=${1}" http://0x0.st |
359 | } | 361 | } |
360 | 362 | ||
363 | # pass | ||
364 | alias cdpass='cd ~/.password-store' | ||
365 | alias p='pass' | ||
366 | alias pc='pass -c' | ||
367 | alias pgc='pass generate -c' | ||
368 | |||
361 | # tmp | 369 | # tmp |
362 | alias and='cd ~/git/geoBingAn.Android' | 370 | alias and='cd ~/git/geoBingAn.Android' |
363 | alias cdS='cd ~/git/StreetComplete' | 371 | alias cdS='cd ~/git/StreetComplete' |
@@ -366,12 +374,8 @@ alias cdand='cd ~/git/sample' | |||
366 | alias cdm='cd ~/git/mapstew' | 374 | alias cdm='cd ~/git/mapstew' |
367 | alias cdma='cd ~/git/mapstew-android' | 375 | alias cdma='cd ~/git/mapstew-android' |
368 | alias cdT='cd ~/git/tilemaker' | 376 | alias cdT='cd ~/git/tilemaker' |
369 | alias cdssh='cd ~/.ssh' | ||
370 | alias cdpass='cd ~/.password-store' | ||
371 | alias pc='pass -c' | ||
372 | alias cdngx='cd /etc/nginx' | 377 | alias cdngx='cd /etc/nginx' |
373 | alias stew='cd ~/git/mapstew' | 378 | alias stew='cd ~/git/mapstew' |
374 | alias chmodx='sudo chmod +x' | ||
375 | 379 | ||
376 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' | 380 | TAIWAN_BBOX='118.1036,20.72799,122.9312,26.60305' |
377 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' | 381 | TAIWAN_BBOX_V='20.72799,118.1036,26.60305,122.9312' |