Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
329 B

  1. function watson-add-game
  2. set year_month (date -u +"%Y-%m")
  3. set start_time "$year_month-$argv[2] $argv[3]"
  4. set end_time "$year_month-$argv[4] $argv[5]"
  5. if test (count $argv) -eq 5
  6. watson add -f $start_time -t $end_time fun +$argv[1]
  7. else
  8. watson add -f $start_time -t $end_time fun +$argv[1] +$argv[6]
  9. end
  10. end