diff options
author | typebrook <typebrook@gmail.com> | 2019-12-11 11:03:05 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-12-11 11:03:05 +0800 |
commit | 7bb2eae61f69f056652f7fe5b217f7c777d8033b (patch) | |
tree | 4ea4e57dc94ac561551d02a230db7f8763955e04 /alias | |
parent | ff7d408d5e87caf6bcbde4e98014996a20f27e37 (diff) |
update
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 20 |
1 files changed, 5 insertions, 15 deletions
@@ -27,9 +27,7 @@ alias ss='sudo !!' | |||
27 | alias hg='history|grep' | 27 | alias hg='history|grep' |
28 | alias rmrf='rm -rf' | 28 | alias rmrf='rm -rf' |
29 | alias rr='move_to_tmp' | 29 | alias rr='move_to_tmp' |
30 | move_to_tmp() { | 30 | move_to_tmp() { mv $1 /tmp } |
31 | mv $1 /tmp | ||
32 | } | ||
33 | 31 | ||
34 | # package | 32 | # package |
35 | alias ai='sudo apt install' # apt install | 33 | alias ai='sudo apt install' # apt install |
@@ -121,9 +119,7 @@ alias adb-default='adb shell dumpsys package domain-preferred-apps' | |||
121 | alias adb-list='adb shell dumpsys package d' | 119 | alias adb-list='adb shell dumpsys package d' |
122 | alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' | 120 | alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' |
123 | alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' | 121 | alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' |
124 | adb-push() { | 122 | adb-push() { adb push $1 /sdcard/Download } |
125 | adb push $1 /sdcard/Download | ||
126 | } | ||
127 | 123 | ||
128 | # gist | 124 | # gist |
129 | gist_list=~/gist/gist.list | 125 | gist_list=~/gist/gist.list |
@@ -186,15 +182,11 @@ alias xll='xo >> ~/vimwiki/working.md' | |||
186 | alias xc='xsel -ob | gcc -xc -' | 182 | alias xc='xsel -ob | gcc -xc -' |
187 | 183 | ||
188 | # image | 184 | # image |
189 | vertical() { | 185 | vertical() { convert $@ -append output.png } |
190 | convert $@ -append output.png | ||
191 | } | ||
192 | 186 | ||
193 | # misc | 187 | # misc |
194 | alias gr='_grepString' | 188 | alias gr='_grepString' |
195 | _grepString() { | 189 | _grepString() { grep -R $1 . } |
196 | grep -R $1 . | ||
197 | } | ||
198 | alias findn='find . -iname' | 190 | alias findn='find . -iname' |
199 | alias wcl='wc -l' | 191 | alias wcl='wc -l' |
200 | alias x='xdg-open' | 192 | alias x='xdg-open' |
@@ -212,9 +204,7 @@ alias we='weechat' | |||
212 | mvt_decode() { | 204 | mvt_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 | } |
215 | big52utf8() { | 207 | big52utf8() { iconv -f BIG-5 -t UTF-8 } |
216 | iconv -f BIG-5 -t UTF-8 | ||
217 | } | ||
218 | 208 | ||
219 | # tmp | 209 | # tmp |
220 | alias cdo='cd ~/git/openmaptiles' | 210 | alias cdo='cd ~/git/openmaptiles' |