diff --git a/.bin/osmc b/.bin/osmc index 8c45e9b..6ecc6b2 100755 --- a/.bin/osmc +++ b/.bin/osmc @@ -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 " echo " df - show disk space allocation" echo " ls - list files" echo " lls - list files with details" - echo " put - copy files to USBDisk" + echo " put - copy files to USBDisk" echo " ren - rename file" - echo " del - delete file" + echo " del - delete file" ;; esac diff --git a/.mutt/rc-common b/.mutt/rc-common index f68a257..b57a29e 100644 --- a/.mutt/rc-common +++ b/.mutt/rc-common @@ -213,6 +213,8 @@ auto_view text/html text/enriched text/calendar # Preview HTML macro pager,attach \cs "cat > /tmp/muttpatch.diff~/.mutt/scripts/apply_patch.sh /tmp/muttpatch.diff" +macro index L '| git am'\n + # Save Patch #macro pager \cs "rm -f /tmp/mutt-patch.diff/tmp/mutt-patch.diffecho 'Saved as /tmp/mutt-patch.diff'~/.mutt/scripts/portpatch.sh /tmp/mutt-patch.diff"