aboutsummaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
Diffstat (limited to 'alias')
-rw-r--r--alias12
1 files changed, 8 insertions, 4 deletions
diff --git a/alias b/alias
index 919e6c5..9414752 100644
--- a/alias
+++ b/alias
@@ -113,7 +113,7 @@ alias pfl='pacman -Fl'
113alias pqe='pacman -Qqe' 113alias pqe='pacman -Qqe'
114alias pR='sudo pacman -R' 114alias pR='sudo pacman -R'
115psi() { 115psi() {
116 pqe | grep $1 >/dev/null && echo -e "$(tput setaf 13)[Installed]$(tput sgr0)" 116 [[ $(pacman -Qqe $1) != '' ]] 2>/dev/null && echo -e "$(tput setaf 13)[Installed]$(tput sgr0)"
117 pacman -Si $1 117 pacman -Si $1
118} 118}
119 119
@@ -243,6 +243,8 @@ alias adb.list='adb shell dumpsys package d'
243alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*' 243alias rmcache='rm -rf ~/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/*'
244alias adb.screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` .' 244alias adb.screenshot='DIR=/sdcard/Pictures/Screenshots/; adb pull $DIR/`adb shell ls -t $DIR | head -1` .'
245alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` .' 245alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` .'
246alias adb.camera='DIR=/sdcard/DCIM/Camera; adb pull $DIR/`adb shell ls -t $DIR | head -1` .'
247alias adb.input='adb shell input text'
246adb.push() { 248adb.push() {
247 adb push $1 /sdcard/Download 249 adb push $1 /sdcard/Download
248} 250}
@@ -306,15 +308,17 @@ alias xo='xsel -ob'
306alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied to clipboard && xsel -ob' 308alias xl='history | tail -1 | grep -oP "^\s*[0-9]+\s\s\K.*" | xsel -ib && echo Copied to clipboard && xsel -ob'
307 309
308# image 310# image
309image_vertical() { 311image.vertical() {
310 suffix=${1##*.} 312 suffix=${1##*.}
311 convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix} 313 convert "$@" -append $(basename -s .$suffix $1)-$(basename -s .$suffix ${@: -1}).${format:-$suffix}
312} 314}
313image_horizontal() { 315image.horizontal() {
314 convert "$@" +append output.png 316 convert "$@" +append output.png
315} 317}
316image_from_data_url() { 318image.from_data_url() {
319 [[ $1 == '' ]] && echo File name needed && return 1
317 xsel -ob | sed -E 's/^.+,//' | base64 -d >$1 320 xsel -ob | sed -E 's/^.+,//' | base64 -d >$1
321 identify $1
318} 322}
319 323
320# thunderbird 324# thunderbird