shell dispatch works good

This commit is contained in:
bth 2024-01-13 11:23:29 -08:00
commit 611e433ca4
3 changed files with 13 additions and 2 deletions

View file

@ -6,4 +6,4 @@
# in plain terms: # in plain terms:
# [leading numbers with consistent width].[optional string descriptor and . separator][md|txt] # [leading numbers with consistent width].[optional string descriptor and . separator][md|txt]
ls | egrep '^\d.*\.md|txt' | tail -n 1 ls | egrep '^[[:digit:]].*\.md|txt' | tail -n 1

13
um
View file

@ -3,7 +3,18 @@
# catch first arguments with $1 # catch first arguments with $1
case "$1" in case "$1" in
next) next)
~/dev/uldb/bash/next/next.sh $2 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 # else