diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-08 23:35:17 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-12-08 23:35:17 +0800 |
| commit | 7d575d4d7d95450b70d3834e872aa9e95f9e0189 (patch) | |
| tree | 97af8a7bda64245726d2d581561ec37727490a33 | |
| parent | bdf123c37e793f3e70f41f59a265d9aaf96b26f0 (diff) | |
update
| -rw-r--r-- | alias | 8 |
1 files changed, 3 insertions, 5 deletions
| @@ -28,8 +28,10 @@ alias cdv='cd ~/.vim_runtime' # amix/vimrc repo | |||
| 28 | alias vgx='sudo vim /etc/nginx/sites-enabled/* && sudo nginx -t && sudo systemctl reload nginx' | 28 | alias vgx='sudo vim /etc/nginx/sites-enabled/* && sudo nginx -t && sudo systemctl reload nginx' |
| 29 | 29 | ||
| 30 | # ssh | 30 | # ssh |
| 31 | alias cdssh='cd ~/.ssh' | ||
| 32 | alias ptt='ssh bbsu@ptt.cc' | ||
| 31 | sshtar() { | 33 | sshtar() { |
| 32 | prompt "tar cf - foo | ssh topo 'cd ~/Downloads; tar xf -'" | 34 | prompt "tar cf - foo | ssh topo 'cd ~/Downloads; tar xf -' \nssh topo 'tar czf - --directory=/home/public dir' | tar xvzf -" |
| 33 | } | 35 | } |
| 34 | 36 | ||
| 35 | # for custom scripts | 37 | # for custom scripts |
| @@ -240,10 +242,6 @@ drb() { | |||
| 240 | docker run --rm -it --entrypoint /bin/bash $@ | 242 | docker run --rm -it --entrypoint /bin/bash $@ |
| 241 | } | 243 | } |
| 242 | 244 | ||
| 243 | # ssh | ||
| 244 | alias cdssh='cd ~/.ssh' | ||
| 245 | alias ptt='ssh bbsu@ptt.cc' | ||
| 246 | |||
| 247 | # Android | 245 | # Android |
| 248 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' | 246 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' |
| 249 | alias adb.view='adb shell am start -a android.intent.action.VIEW -d' | 247 | alias adb.view='adb shell am start -a android.intent.action.VIEW -d' |