From 7bb2eae61f69f056652f7fe5b217f7c777d8033b Mon Sep 17 00:00:00 2001 From: typebrook Date: Wed, 11 Dec 2019 11:03:05 +0800 Subject: update --- alias | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) (limited to 'alias') diff --git a/alias b/alias index cbeb203..52e12b9 100644 --- a/alias +++ b/alias @@ -27,9 +27,7 @@ alias ss='sudo !!' alias hg='history|grep' alias rmrf='rm -rf' alias rr='move_to_tmp' -move_to_tmp() { - mv $1 /tmp -} +move_to_tmp() { mv $1 /tmp } # package alias ai='sudo apt install' # apt install @@ -121,9 +119,7 @@ alias adb-default='adb shell dumpsys package domain-preferred-apps' alias adb-list='adb shell dumpsys package d' alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' alias adb-last-screenshot='adb pull /sdcard/Screenshots/`adb shell ls -t /sdcard/Screenshots/ | head -1` ~/Desktop' -adb-push() { - adb push $1 /sdcard/Download -} +adb-push() { adb push $1 /sdcard/Download } # gist gist_list=~/gist/gist.list @@ -186,15 +182,11 @@ alias xll='xo >> ~/vimwiki/working.md' alias xc='xsel -ob | gcc -xc -' # image -vertical() { - convert $@ -append output.png -} +vertical() { convert $@ -append output.png } # misc alias gr='_grepString' -_grepString() { - grep -R $1 . -} +_grepString() { grep -R $1 . } alias findn='find . -iname' alias wcl='wc -l' alias x='xdg-open' @@ -212,9 +204,7 @@ alias we='weechat' mvt_decode() { python3 $SETTING_DIR/scripts/mvt_decode.py $1 | tr \' \" | sed 's/True/true/g' | jq . } -big52utf8() { - iconv -f BIG-5 -t UTF-8 -} +big52utf8() { iconv -f BIG-5 -t UTF-8 } # tmp alias cdo='cd ~/git/openmaptiles' -- cgit v1.2.3-70-g09d2