UMBASEPATH
This commit is contained in:
parent
611e433ca4
commit
67c6d20181
2 changed files with 12 additions and 6 deletions
12
um
12
um
|
|
@ -1,20 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
# export so that we can use it in subscripts.
|
||||
export UMBASEPATH=`realpath $0 | xargs dirname`
|
||||
|
||||
# catch first arguments with $1
|
||||
case "$1" in
|
||||
next)
|
||||
NEXTFILE=`./bash/next/next.sh $2`
|
||||
emacsclient --eval "(progn (find-file \"$NEXTFILE\") (journal))"
|
||||
$UMBASEPATH/bash/next/next.sh $2
|
||||
;;
|
||||
last)
|
||||
./bash/last/last.sh
|
||||
$UMBASEPATH/bash/last/last.sh
|
||||
;;
|
||||
cat)
|
||||
# all args but first
|
||||
./bash/mdcat/mdcat.sh "${@:2}"
|
||||
$UMBASEPATH/bash/mdcat/mdcat.sh "${@:2}"
|
||||
;;
|
||||
rename)
|
||||
./bash/rename/rename.sh "${@:2}"
|
||||
$UMBASEPATH/bash/rename/rename.sh "${@:2}"
|
||||
;;
|
||||
*)
|
||||
# else
|
||||
|
|
|
|||
Loading…
Reference in a new issue