diff options
Diffstat (limited to '.local/share/bin/khal')
-rwxr-xr-x | .local/share/bin/khal | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.local/share/bin/khal b/.local/share/bin/khal new file mode 100755 index 0000000..23f188a --- /dev/null +++ b/.local/share/bin/khal @@ -0,0 +1,14 @@ +#!/bin/sh +CFG="$XDG_CONFIG_HOME/khal/config" +cat - "$XDG_CONFIG_HOME/khal/base" << "EOF" > "$CFG" +# THIS FILE IS AUTO-GENERATED, EDIT config_gen OR base INSTEAD!!! + +EOF +"$XDG_CONFIG_HOME/khal/config_gen" >> "$CFG" + +# aliases +[ "$1" == "i" ] && { shift ; set -- interactive "$@" ; } +[ "$1" == "l" ] && { shift ; set -- list "$@" ; } + +exec /usr/bin/khal "$@" + |