shell dispatch works good
This commit is contained in:
parent
e7a4a864cd
commit
611e433ca4
3 changed files with 13 additions and 2 deletions
|
|
@ -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
13
um
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue