source user kakrc after autoloads, so that user can override options

This commit is contained in:
Maxime Coste 2012-12-06 20:30:34 +01:00
parent 6ab3d27d3f
commit c000ca2220

View File

@ -11,14 +11,14 @@ def -shell-params runtime %{ %sh{
else
localconfdir="$HOME/.config/kak"
fi
if [[ -f "${localconfdir}/kakrc" ]]; then
echo "source '${localconfdir}/kakrc'"
fi
if [[ -d "${localconfdir}/autoload" ]]; then
for rcfile in ${localconfdir}/autoload/*; do
echo "try %{ source '${rcfile}' } catch %{ }";
done
fi
if [[ -f "${localconfdir}/kakrc" ]]; then
echo "source '${localconfdir}/kakrc'"
fi
}
# define color scheme