aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/khal
blob: 71e5392158ad50b200d7c12ec0eea35251314862 (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 "$@"