From e43eb1177872f52e949fb5f0f93396ed94b0d093 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sun, 2 Aug 2026 14:48:29 +0200 Subject: move to chezmoi --- home/dot_local/share/bin/executable_khal | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 home/dot_local/share/bin/executable_khal (limited to 'home/dot_local/share/bin/executable_khal') diff --git a/home/dot_local/share/bin/executable_khal b/home/dot_local/share/bin/executable_khal new file mode 100644 index 0000000..71e5392 --- /dev/null +++ b/home/dot_local/share/bin/executable_khal @@ -0,0 +1,16 @@ +#!/bin/sh +CFG="$XDG_CONFIG_HOME/khal/config" +if [ "$CFG" -ot "$XDG_CONFIG_HOME/khal/config.sh" ] ; then + 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" +fi + +# aliases +[ "$1" = "i" ] && { shift ; set -- interactive "$@" ; } +[ "$1" = "l" ] && { shift ; set -- list "$@" ; } + +exec /usr/bin/khal "$@" + -- cgit v1.2.3