aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-03-26 11:23:36 +0800
committertypebrook <typebrook@gmail.com>2019-03-26 11:23:36 +0800
commita2c47b527b081022429b3592abadbed6c5b2c6b1 (patch)
tree68e29b1a88955906729e929c2b5b1eafa2cea2ca
parent820012fb5c178cb9402388462b08ba71ecc82a4e (diff)
update
-rw-r--r--alias18
1 files changed, 14 insertions, 4 deletions
diff --git a/alias b/alias
index cb290cc..2d5e385 100644
--- a/alias
+++ b/alias
@@ -25,7 +25,17 @@ alias ld='cd -' # last directory
25alias cdd='cd ~/Downloads' 25alias cdd='cd ~/Downloads'
26alias cdg='cd ~/git' 26alias cdg='cd ~/git'
27alias cds='cd ~/git/settings' 27alias cds='cd ~/git/settings'
28alias r='ranger' 28
29alias r='ranger-cd'
30function ranger-cd {
31 tempfile="$(mktemp -t tmp.XXXXXX)"
32 ranger --choosedir="$tempfile" "${@:-$(pwd)}"
33 test -f "$tempfile" &&
34 if [ "$(cat -- "$tempfile")" != "$(echo -n `pwd`)" ]; then
35 cd -- "$(cat "$tempfile")"
36 fi
37 rm -f -- "$tempfile"
38}
29 39
30# disk 40# disk
31alias df='df -h' 41alias df='df -h'
@@ -73,9 +83,9 @@ alias ty='tig stash'
73alias rl='git reflog --pretty=raw | tig --pretty=raw' 83alias rl='git reflog --pretty=raw | tig --pretty=raw'
74 84
75# Android 85# Android
76alias debug='./gradlew app:installDebug && adb shell am start -n adb shell am start -n com.geothings.geobingan/.MainActivity_' 86alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_'
77alias adbdefault='adb shell dumpsys package domain-preferred-apps' 87alias adb-default='adb shell dumpsys package domain-preferred-apps'
78alias adblist='adb shell dumpsys package d' 88alias adb-list='adb shell dumpsys package d'
79alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' 89alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*'
80alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' 90alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop'
81 91