blob: d41746911a48a0332a5260193db1d724974e949e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 "$@"
|