diff options
-rwxr-xr-x | gromo | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -47,10 +47,14 @@ elif [ "$1" = "--help" ] || [ "$1" = "-h" ]; then cmd=$(basename $0) echo -e "Usage: $cmd --xmobar-status \tReturn state formatted for display in xmobar + $cmd --list | -l \tList past gromos $cmd --help | -h \tShow this help $cmd [gromo] [descr] \tStart counting gromo (default gromo: "work") " exit 0 +elif [ "$1" = "--list" ] || [ "$1" = "-l" ]; then + find $DATA_DIR/ -type f -print | xargs -n 1 basename | sort -u + exit 0 elif [ "$#" -ge 1 ]; then gromo="$1" desc="$2" |