🢀︎ archlinux :: 673cb9e


commit 673cb9eb5b98efe4533a3defd37a39a286926847
Author: acidvegas <acid.vegas@acid.vegas>
Date:   Fri Jul 26 02:56:34 2019 -0400

    Updated

diff --git a/home/acidvegas/.bashrc b/home/acidvegas/.bashrc
index a514a4b..67aa0d9 100644
--- a/home/acidvegas/.bashrc
+++ b/home/acidvegas/.bashrc
@@ -48,6 +48,10 @@ img() {
 	convert -thumbnail $(tput cols) $1 txt:- | awk -F '[)(,:]' '/white/{$9=$10=$11=255}!/^#/{if($2%2){printf"\033[48;2;"pR[$1]";"pG[$1]";"pB[$1]";38;2;"$9";"$10";"$11"m▄"}else{pR[$1]=$9;pG[$1]=$10;pB[$1]=$11}}'
 }
 
+imgur() {
+	curl -H "Authorization: Client-ID 9657b96ca0b7f38" -H "Expect: " -F "image=@$1" https://api.imgur.com/3/image 2>/dev/null |  sed -E 's/.*"link":"([^"]+)".*/\1/' | sed "s|\\\\/|/|g" | xclip-selection c
+}
+
 lsnum() {
 	COUNT=1
 	for f in $1/*.txt; do