Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am iateadonut on github.
  • I am iateadonut (https://keybase.io/iateadonut) on keybase.
  • I have a public key ASDULpOV9WMjrJDHyuqKWyp4tDnDM6RSpKdNeN1jFz738go

To claim this, I am signing this object:

@iateadonut
iateadonut / twts.sh
Last active March 21, 2022 11:37
time warrior - find all tags associated with a tag, then find how much time was spent on each of those tags
#!/bin/bash
#time warrior tag summary
while IFS= read -r line;do
tag="${line// -/ }"
tag=`echo $tag`
command="timew \""$1"\" \""$tag"\" summary :month"
response=$(echo `timew \""$1"\" \""$tag"\" summary :month | tail -n 2 | head -n 1`)
[[ $response = "No filtered data"* ]] && response="No data"
printf "%-50s - %-30s\n" "$tag" "$response"
done < <(timew tags :month "$1" | tail -n +4 | head -n -1)
@iateadonut
iateadonut / iateadonut.zsh-theme
Created April 11, 2024 05:23
iateadonut.zsh-theme
shrink_path () {
setopt localoptions
setopt rc_quotes null_glob
typeset -i lastfull=0
typeset -i short=0
typeset -i tilde=0
typeset -i named=0
typeset -i length=1
typeset ellipsis=""