diff options
| author | Hsieh Chin Fan <typebrook@gmail.com> | 2021-10-12 15:48:37 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <typebrook@gmail.com> | 2021-10-12 15:48:37 +0800 |
| commit | 2b7515772f9da0290ba2a8c5759a45b228c4de38 (patch) | |
| tree | a6864980f13f1d4df1948d45c42c26beb9eaf6f8 | |
| parent | 8b1a586da07488b4ca67204a33cb5349666ca9f6 (diff) | |
update
| -rw-r--r-- | alias | 10 | ||||
| -rwxr-xr-x | tools/init/load-settings.sh | 2 |
2 files changed, 7 insertions, 5 deletions
| @@ -221,12 +221,12 @@ alias ptt='ssh bbsu@ptt.cc' | |||
| 221 | # Android | 221 | # Android |
| 222 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' | 222 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' |
| 223 | alias adb.view='adb shell am start -a android.intent.action.VIEW -d' | 223 | alias adb.view='adb shell am start -a android.intent.action.VIEW -d' |
| 224 | alias adb_default='adb shell dumpsys package domain-preferred-apps' | 224 | alias adb.default='adb shell dumpsys package domain-preferred-apps' |
| 225 | alias adb_list='adb shell dumpsys package d' | 225 | alias adb.list='adb shell dumpsys package d' |
| 226 | alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' | 226 | alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' |
| 227 | alias adb_last_screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop' | 227 | alias adb.screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop' |
| 228 | alias adb_last_camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop' | 228 | alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` ~/Desktop' |
| 229 | adb_push() { | 229 | adb.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 |