dotfiles/office/.config/sh/alias.d/timewarrior.sh

17 lines
296 B
Bash

#!/usr/bin/env sh
if ! exist timew; then
return 1
fi
# invoking tim without arguments prints out timesheet summary
# with ids attached.
# otherwise tim passes through any arguments to timew
tim() {
if [ "$#" -eq 0 ]; then
timew summary :ids
else
timew "$@"
fi
}