diff options
| -rw-r--r-- | alias | 3 | ||||
| -rw-r--r-- | tigrc | 15 |
2 files changed, 12 insertions, 6 deletions
| @@ -91,6 +91,7 @@ alias adb-default='adb shell dumpsys package domain-preferred-apps' | |||
| 91 | alias adb-list='adb shell dumpsys package d' | 91 | alias adb-list='adb shell dumpsys package d' |
| 92 | alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' | 92 | alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' |
| 93 | alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' | 93 | alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' |
| 94 | alias adb-push='adb push /sdcard/Download/' | ||
| 94 | 95 | ||
| 95 | # gist | 96 | # gist |
| 96 | gist_list=~/gist/gist.list | 97 | gist_list=~/gist/gist.list |
| @@ -130,3 +131,5 @@ alias cdS='cd ~/git/StreetComplete' | |||
| 130 | alias and='cd ~/git/geoBingAn.Android' | 131 | alias and='cd ~/git/geoBingAn.Android' |
| 131 | alias gdal='docker-compose run --rm gdal' | 132 | alias gdal='docker-compose run --rm gdal' |
| 132 | alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm' | 133 | alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm' |
| 134 | |||
| 135 | repo='git@github.com' | ||
| @@ -11,6 +11,7 @@ bind generic G move-last-line | |||
| 11 | bind generic <C-H> scroll-left | 11 | bind generic <C-H> scroll-left |
| 12 | bind generic <C-L> none | 12 | bind generic <C-L> none |
| 13 | bind generic <C-L> scroll-right | 13 | bind generic <C-L> scroll-right |
| 14 | bind generic <Esc>l screen-redraw | ||
| 14 | 15 | ||
| 15 | # toggle/copy commit id | 16 | # toggle/copy commit id |
| 16 | bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" | 17 | bind generic xx +sh -c "echo -n %(commit) | head -c7 | xclip -sel c && echo Commit Clipped!" |
| @@ -174,10 +175,10 @@ bind stash n @sh -c "git stash drop %(stash) | \ | |||
| 174 | #==================== | 175 | #==================== |
| 175 | # stage view | 176 | # stage view |
| 176 | #==================== | 177 | #==================== |
| 177 | bind stage <Ctrl-N> :/^@@ | 178 | bind stage <C-J> :/^@@ |
| 178 | bind stage <Ctrl-P> :?^@@ | 179 | bind stage <C-K> :?^@@ |
| 179 | bind stage <Esc>n :/^diff --(git|cc) | 180 | bind stage <Esc>j :/^diff --(git|cc) |
| 180 | bind stage <Esc>p :?^diff --(git|cc) | 181 | bind stage <Esc>k :?^diff --(git|cc) |
| 181 | 182 | ||
| 182 | #==================== | 183 | #==================== |
| 183 | # tree view | 184 | # tree view |
| @@ -223,8 +224,10 @@ bind log p :?^commit | |||
| 223 | #==================== | 224 | #==================== |
| 224 | # diff view | 225 | # diff view |
| 225 | #==================== | 226 | #==================== |
| 226 | bind diff <Esc>n :/^diff --(git|cc) | 227 | bind diff <C-J> :/^@@ |
| 227 | bind diff <Esc>p :?^diff --(git|cc) | 228 | bind diff <C-K> :?^@@ |
| 229 | bind diff <Esc>j :/^diff --(git|cc) | ||
| 230 | bind diff <Esc>k :?^diff --(git|cc) | ||
| 228 | 231 | ||
| 229 | #==================== | 232 | #==================== |
| 230 | # help view | 233 | # help view |