diff options
author | Guillermo Ramos | 2021-08-24 10:05:30 +0200 |
---|---|---|
committer | Guillermo Ramos | 2021-08-24 10:07:09 +0200 |
commit | c6f6c410baa0fe624012d46f19eeeb3dd459446a (patch) | |
tree | d6c3fdef90e79c0772e11ce35c967bb7ff6a85e8 | |
parent | 12119fa837d422f55acdc904d2fbbb3bf88d527f (diff) | |
download | cli-c6f6c410baa0fe624012d46f19eeeb3dd459446a.tar.gz |
gromo: list
-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" |