1
Fork 0

changed to a directory depth of two for grog tags

This commit is contained in:
Andy Killorin 2023-10-08 17:53:33 -05:00
parent 68d35cbdfb
commit ab26d455fd
Signed by: ank
GPG key ID: B6241CA3B552BCA4

14
.zshrc
View file

@ -60,13 +60,7 @@ function git-subdir() {
} }
function jobrog_git_tag() { function jobrog_git_tag() {
local top=$(git-subdir | tr '/' '\n' | head -2 | tail -1) git-subdir | tr '/' '\n' | tail -n +2 | head -n $1 | xargs -I {} echo -n "-t {} "
if [ -n "$top" ]; then
top="-t $top"
fi
echo "$top"
} }
# jobrog porcelain # jobrog porcelain
@ -76,16 +70,16 @@ function grog() {
job -d $root $@ job -d $root $@
} }
function start() { function start() {
grog a $(jobrog_git_tag) $@ grog a $(jobrog_git_tag 2) $@
} }
function stop() { function stop() {
grog d $@ grog d $@
} }
function todo() { function todo() {
grog n $(jobrog_git_tag) -t todo $@ grog n $(jobrog_git_tag 2) -t todo $@
} }
function todos() { function todos() {
grog s -n -t $(jobrog_git_tag) -t todo -T done $@ grog s -n -t $(jobrog_git_tag 2) -t todo -T done $@
} }
function did() { function did() {
local rx=$1; shift local rx=$1; shift