aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
authortypebrook <typebrook@gmail.com>2019-12-11 11:03:05 +0800
committertypebrook <typebrook@gmail.com>2019-12-11 11:03:05 +0800
commit7bb2eae61f69f056652f7fe5b217f7c777d8033b (patch)
tree4ea4e57dc94ac561551d02a230db7f8763955e04 /alias
parentff7d408d5e87caf6bcbde4e98014996a20f27e37 (diff)
update
Diffstat (limited to 'alias')
-rw-r--r--alias20
1 files changed, 5 insertions, 15 deletions
diff --git a/alias b/alias
index cbeb203..52e12b9 100644
--- a/alias
+++ b/alias
@@ -27,9 +27,7 @@ alias ss='sudo !!'
27alias hg='history|grep' 27alias hg='history|grep'
28alias rmrf='rm -rf' 28alias rmrf='rm -rf'
29alias rr='move_to_tmp' 29alias rr='move_to_tmp'
30move_to_tmp() { 30move_to_tmp() { mv $1 /tmp }
31 mv $1 /tmp
32}
33 31
34# package 32# package
35alias ai='sudo apt install' # apt install 33alias ai='sudo apt install' # apt install
@@ -121,9 +119,7 @@ alias adb-default='adb shell dumpsys package domain-preferred-apps'
121alias adb-list='adb shell dumpsys package d' 119alias adb-list='adb shell dumpsys package d'
122alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' 120alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*'
123alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' 121alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop'
124adb-push() { 122adb-push() { adb push $1 /sdcard/Download }
125 adb push $1 /sdcard/Download
126}
127 123
128# gist 124# gist
129gist_list=~/gist/gist.list 125gist_list=~/gist/gist.list
@@ -186,15 +182,11 @@ alias xll='xo >> ~/vimwiki/working.md'
186alias xc='xsel -ob | gcc -xc -' 182alias xc='xsel -ob | gcc -xc -'
187 183
188# image 184# image
189vertical() { 185vertical() { convert $@ -append output.png }
190 convert $@ -append output.png
191}
192 186
193# misc 187# misc
194alias gr='_grepString' 188alias gr='_grepString'
195_grepString() { 189_grepString() { grep -R $1 . }
196 grep -R $1 .
197}
198alias findn='find . -iname' 190alias findn='find . -iname'
199alias wcl='wc -l' 191alias wcl='wc -l'
200alias x='xdg-open' 192alias x='xdg-open'
@@ -212,9 +204,7 @@ alias we='weechat'
212mvt_decode() { 204mvt_decode() {
213 python3 $SETTING_DIR/scripts/mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq . 205 python3 $SETTING_DIR/scripts/mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq .
214} 206}
215big52utf8() { 207big52utf8() { iconv -f BIG-5 -t UTF-8 }
216 iconv -f BIG-5 -t UTF-8
217}
218 208
219# tmp 209# tmp
220alias cdo='cd ~/git/openmaptiles' 210alias cdo='cd ~/git/openmaptiles'