um-mode/um
2024-01-13 11:23:29 -08:00

23 lines
481 B
Shell
Executable file

#!/bin/bash
# catch first arguments with $1
case "$1" in
next)
NEXTFILE=`./bash/next/next.sh $2`
emacsclient --eval "(progn (find-file \"$NEXTFILE\") (journal))"
;;
last)
./bash/last/last.sh
;;
cat)
# all args but first
./bash/mdcat/mdcat.sh "${@:2}"
;;
rename)
./bash/rename/rename.sh "${@:2}"
;;
*)
# else
echo "usage: um (next|last|cat|rename)"
;;
esac