Increase DPI, various fish functions

This commit is contained in:
2019-08-20 05:34:28 -04:00
parent 704fb6665c
commit 1ef5633357
15 changed files with 495 additions and 38 deletions

View File

@@ -0,0 +1,4 @@
function backup-phone-pics
rsync -rave 'ssh -p 8022' 192.168.0.12:/data/data/com.termux/files/home/storage/dcim/Camera /mnt/linux-files/Pictures/pixel
and rsync -rave 'ssh -p 8022' 192.168.0.12:/data/data/com.termux/files/home/storage/pictures/ /mnt/linux-files/Pictures/pixel/pictures
end

View File

@@ -1,9 +1,13 @@
function buku-fzf
# buku -p -f 5 | awk -F '\t' 'BEGIN { OFS=FS }; { $2=substr($2, 1, 90); print }' | column -t -s (printf '\t') | fzf --multi | awk '{ print $1 }'
if test $argv[1] = "fq"
set ids (buku -t fq -f4 | awk -F '\t' 'BEGIN { OFS=FS }; { sub(/https?:\/\/(www\.)?/, "", $2); $2=substr($2, 1, 45); $3=substr($3, 1, 50); print }' | column -t -s (printf '\t') | fzf --multi --tiebreak end | awk '{ print $1 }')
# if test (count $argv) -ge 1 -a "$argv[1]" = "fq"
# set ids (buku -t fq -f4 | awk -F '\t' 'BEGIN { OFS=FS }; { sub(/https?:\/\/(www\.)?/, "", $2); $2=substr($2, 1, 45); $3=substr($3, 1, 50); print }' | column -t -s (printf '\t') | fzf --multi --tiebreak end | awk '{ print $1 }')
if test (count $argv) -eq 1
# TODO: column width? #
set ids (buku -t + "$argv" -f4 | awk -F '\t' 'BEGIN { OFS=FS }; { sub(/https?:\/\/(www\.)?/, "", $2); $2=substr($2, 1, 45); $3=substr($3, 1, 50); print }' | column -t -s (printf '\t') | fzf --multi --tiebreak end | awk '{ print $1 }')
# echo buku -t + "$argv" -f4
else
set ids (buku -p -f4 | awk -F '\t' 'BEGIN { OFS=FS }; { sub(/https?:\/\/(www\.)?/, "", $2); $2=substr($2, 1, 45); $3=substr($3, 1, 45); print }' | column -t -s (printf '\t') | fzf --multi --tiebreak end | awk '{ print $1 }')
set ids (buku -p -f4 | awk -F '\t' 'BEGIN { OFS=FS }; { sub(/https?:\/\/(www\.)?/, "", $2); $2=substr($2, 1, 45); $3=substr($3, 1, 50); print }' | column -t -s (printf '\t') | fzf --multi --tiebreak end | awk '{ print $1 }')
end
for id in $ids

View File

@@ -0,0 +1,5 @@
function export-pkgs
yay -Qqne > ~/linux-config/txt/(hostname)-pkgs.txt
and yay -Qqme > ~/linux-config/txt/(hostname)-aur.txt
and yay -Qqe > ~/linux-config/txt/(hostname)-all.txt
end

View File

@@ -0,0 +1,4 @@
function git-push-new-gitea
git remote add gitea git@git.ataraxy.tk:Kevin-Mok/$argv[1].git
and git push --set-upstream gitea master
end

View File

@@ -1,3 +1,5 @@
function pastebin
cat $argv[1] | curl -F 'sprunge=<-' http://sprunge.us
# cat $argv[1] | curl -F 'sprunge=<-' http://sprunge.us
# set -x HASTE_SERVER https://pste.gq
cat $argv[1] | haste --raw
end