2013-03-28 21:38:41 +04:00
|
|
|
# define color scheme
|
|
|
|
colalias value red
|
|
|
|
colalias type yellow
|
|
|
|
colalias identifier cyan
|
|
|
|
colalias string magenta
|
|
|
|
colalias error default,red
|
|
|
|
colalias keyword blue
|
|
|
|
colalias operator yellow
|
|
|
|
colalias attribute green
|
|
|
|
colalias comment cyan
|
|
|
|
colalias macro magenta
|
|
|
|
|
2012-09-10 22:45:34 +04:00
|
|
|
def -shell-params runtime %{ %sh{
|
2013-03-22 16:45:52 +04:00
|
|
|
while [ $# -gt 0 ]; do
|
2012-09-10 22:45:34 +04:00
|
|
|
echo "source '${kak_runtime}/$1'"
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
}}
|
2012-01-14 05:04:08 +04:00
|
|
|
|
2012-09-10 22:45:34 +04:00
|
|
|
%sh{
|
2013-03-22 16:45:52 +04:00
|
|
|
if [ -n "${XDG_CONFIG_HOME}" ]; then
|
2012-09-10 22:45:34 +04:00
|
|
|
localconfdir="${XDG_CONFIG_HOME}/kak"
|
|
|
|
else
|
|
|
|
localconfdir="$HOME/.config/kak"
|
|
|
|
fi
|
2013-03-22 16:45:52 +04:00
|
|
|
if [ -d "${localconfdir}/autoload" ]; then
|
2012-09-10 22:45:34 +04:00
|
|
|
for rcfile in ${localconfdir}/autoload/*; do
|
|
|
|
echo "try %{ source '${rcfile}' } catch %{ }";
|
|
|
|
done
|
|
|
|
fi
|
2013-03-22 16:45:52 +04:00
|
|
|
if [ -f "${localconfdir}/kakrc" ]; then
|
2012-12-06 23:30:34 +04:00
|
|
|
echo "source '${localconfdir}/kakrc'"
|
|
|
|
fi
|
2012-09-10 22:45:34 +04:00
|
|
|
}
|