Increase DPI, various fish functions
This commit is contained in:
4
dot_config/fish/functions/backup-phone-pics.fish
Normal file
4
dot_config/fish/functions/backup-phone-pics.fish
Normal 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
|
||||
@@ -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
|
||||
|
||||
5
dot_config/fish/functions/export-pkgs.fish
Normal file
5
dot_config/fish/functions/export-pkgs.fish
Normal 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
|
||||
4
dot_config/fish/functions/git/git-push-new-gitea.fish
Normal file
4
dot_config/fish/functions/git/git-push-new-gitea.fish
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user