diff options
-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' |