Update 2024-02-14 07:51 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-02-14 07:54:31 +01:00
parent b55e6a3616
commit 9624895938
373 changed files with 19074 additions and 3045 deletions

33
.bin/OLD/eg Executable file
View File

@@ -0,0 +1,33 @@
#!/bin/sh
. $HOME/.bin/_config
# build list...
build_list() {
L=$( ssh $USER@$DOMAIN \
"find \"$LOCAL_PATH\" \
! -path '*/hn/*' \
! -path '*/git/*' \
! -path '*/p/*' \
-type f \
\( -name '*.gph' \
-o -name '*.dcgi' \
-o -name '*.txt' \
-o -name '*.sh' \
\) \
| cut -b "$(( ${#LOCAL_PATH} + 2))- \
| sort -hr )
}
build_list
# edit loop
while true;
do
S=$( printf '%s' "$L" | fzf --no-sort )
[ "$?" -eq "130" ] && exit # fzf return 130 on ctrl+c
[ -z "$S" ] && continue
A="$( printf '%s\n%s' "EDIT" "DELETE" | fzf --no-sort )"
case $A in
EDIT) vim "scp://$USER@$DOMAIN/$LOCAL_PATH/$S"; ;;
DELETE) ssh $USER@$DOMAIN "rm $LOCAL_PATH/$S"; build_list; ;;
esac
done