Update 2024-12-22 22:44 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id 2024-12-22 22:44:47 +01:00
parent ebae25d46e
commit e27a96f17e
2 changed files with 8 additions and 6 deletions

View File

@ -1,18 +1,18 @@
#!/bin/sh
case $1 in
put) shift; rsync -rvP $@ osmc:/media/USBDisk/ ;;
df) ssh osmc "df -h /media/USBDisk/" ;;
ls) ssh osmc "cd /media/USBDisk/ && ls -1 | grep -v lost+found" ;;
lls) ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
put) shift; rsync -rv --progress --append-verify $@ osmc:/media/USBDisk/ ;;
df) shift; ssh osmc "df -h /media/USBDisk/" ;;
ls) shift; ssh osmc "cd /media/USBDisk/ && ls $@ | grep -v lost+found" ;;
lls) shift; ssh osmc "cd /media/USBDisk/ && ls -lh | grep -v lost+found" ;;
del) shift; ssh osmc "cd /media/USBDisk/ && rm -v $@" ;;
ren) shift; ssh osmc "cd /media/USBDisk/ && mv \"$1\" \"$2\"" ;;
*) echo "usage: osmc <command> <args>"
echo " df - show disk space allocation"
echo " ls - list files"
echo " lls - list files with details"
echo " put <file> - copy files to USBDisk"
echo " put <files> - copy files to USBDisk"
echo " ren <old> <new> - rename file"
echo " del <file> - delete file"
echo " del <files> - delete file"
;;
esac

View File

@ -213,6 +213,8 @@ auto_view text/html text/enriched text/calendar
# Preview HTML
macro pager,attach \cs "<pipe-message>cat > /tmp/muttpatch.diff<enter><shell-escape>~/.mutt/scripts/apply_patch.sh /tmp/muttpatch.diff<enter>"
macro index L '| git am'\n
# Save Patch
#macro pager \cs "<shell-escape>rm -f /tmp/mutt-patch.diff<enter><copy-message>/tmp/mutt-patch.diff<enter><enter-command>echo 'Saved as /tmp/mutt-patch.diff'<enter><shell-escape>~/.mutt/scripts/portpatch.sh /tmp/mutt-patch.diff<enter>"