Update 2022-12-08 17:11 OpenBSD/amd64
This commit is contained in:
parent
d1d1f8255a
commit
89d75f8a6f
@ -15,11 +15,12 @@ case $SEL in
|
||||
Documents)
|
||||
DOC=$(ls -1pr $PIMDIR/documents/ | grep -v '/$' | sort -hr | $DMENU_CMD -p Documents -l 25)
|
||||
if [ ! -z "$DOC" ]; then
|
||||
ACT=$(printf "View\nEdit\nEmail" | $DMENU_CMD -p Action)
|
||||
ACT=$(printf "View\nEdit\nEmail\nDelete" | $DMENU_CMD -p Action)
|
||||
case $ACT in
|
||||
View) mupdf "$PIMDIR/documents/$DOC" ;;
|
||||
Edit) pdfarranger "$PIMDIR/documents/$DOC" ;;
|
||||
Email) texec "mutt -a \"$PIMDIR/documents/$DOC\"" ;;
|
||||
Delete) mkdir -p /tmp/deleted_documents; mv "$PIMDIR/documents/$DOC" /tmp/deleted_documents/; ;;
|
||||
esac
|
||||
fi
|
||||
;;
|
||||
|
9
.bin/documents-update
Executable file
9
.bin/documents-update
Executable file
@ -0,0 +1,9 @@
|
||||
#/bin/sh -xe
|
||||
. ${HOME}/.bin/_config
|
||||
|
||||
cd ${PIMDIR}
|
||||
git add *
|
||||
git commit -am "Update $(date +"%Y-%m-%d %H:%M")"
|
||||
git fetch
|
||||
git rebase origin/main
|
||||
git push
|
Loading…
Reference in New Issue
Block a user