diff options
author | Romain Gonçalves <me@rgoncalves.se> | 2022-01-02 21:07:04 +0100 |
---|---|---|
committer | Romain Gonçalves <me@rgoncalves.se> | 2022-01-02 21:07:04 +0100 |
commit | a3d041d259756dc609b40e5244965fb36b05b8a3 (patch) | |
tree | 8f0890cf1dc48ef35ca6d0d5e572c2325aa09288 /.bin/ccurse | |
parent | 0f08d04698c814955116b6bae50752e64b774d8f (diff) | |
download | dots-a3d041d259756dc609b40e5244965fb36b05b8a3.tar.gz |
Sun Jan 2 09:07:04 PM CET 2022
Diffstat (limited to '.bin/ccurse')
-rwxr-xr-x | .bin/ccurse | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/.bin/ccurse b/.bin/ccurse new file mode 100755 index 0000000..6377bb0 --- /dev/null +++ b/.bin/ccurse @@ -0,0 +1,11 @@ +#!/bin/sh + +default_calendar="personal" +data_dir="${HOME}/docs/calendar" + +for calendar; do true; done +args=$(echo ${@} | rev | cut -d " " -f 2- | rev) + +exec calcurse -C "${HOME}/.config/calcurse" \ + -D "${data_dir}/${last:-${default_calendar}}" \ + ${args} |