aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2021-10-12 15:48:37 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2021-10-12 15:48:37 +0800
commit2b7515772f9da0290ba2a8c5759a45b228c4de38 (patch)
treea6864980f13f1d4df1948d45c42c26beb9eaf6f8
parent8b1a586da07488b4ca67204a33cb5349666ca9f6 (diff)
update
-rw-r--r--alias10
-rwxr-xr-xtools/init/load-settings.sh2
2 files changed, 7 insertions, 5 deletions
diff --git a/alias b/alias
index c708a72..0f808aa 100644
--- a/alias
+++ b/alias
@@ -221,12 +221,12 @@ alias ptt='ssh bbsu@ptt.cc'
221# Android 221# Android
222alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' 222alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_'
223alias adb.view='adb shell am start -a android.intent.action.VIEW -d' 223alias adb.view='adb shell am start -a android.intent.action.VIEW -d'
224alias adb_default='adb shell dumpsys package domain-preferred-apps' 224alias adb.default='adb shell dumpsys package domain-preferred-apps'
225alias adb_list='adb shell dumpsys package d' 225alias adb.list='adb shell dumpsys package d'
226alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' 226alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*'
227alias adb_last_screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop' 227alias adb.screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop'
228alias adb_last_camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop' 228alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop'
229adb_push() { 229adb.push() {
230 adb push $1 /sdcard/Download 230 adb push $1 /sdcard/Download
231} 231}
232 232
diff --git a/tools/init/load-settings.sh b/tools/init/load-settings.sh
index e12fd13..9ae2806 100755
--- a/tools/init/load-settings.sh
+++ b/tools/init/load-settings.sh
@@ -9,6 +9,8 @@ case $SHELL in
9 setopt extended_glob 9 setopt extended_glob
10 fpath=($SETTING_DIR/zsh $fpath) 10 fpath=($SETTING_DIR/zsh $fpath)
11 setopt extended_glob 11 setopt extended_glob
12 zle -N deer
13 bindkey '\ek' deer
12 ;; 14 ;;
13 *bash) 15 *bash)
14 shopt -s extglob 16 shopt -s extglob