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 else
localconfdir="$HOME/.config/kak" localconfdir="$HOME/.config/kak"
fi fi
if [[ -f "${localconfdir}/kakrc" ]]; then
echo "source '${localconfdir}/kakrc'"
fi
if [[ -d "${localconfdir}/autoload" ]]; then if [[ -d "${localconfdir}/autoload" ]]; then
for rcfile in ${localconfdir}/autoload/*; do for rcfile in ${localconfdir}/autoload/*; do
echo "try %{ source '${rcfile}' } catch %{ }"; echo "try %{ source '${rcfile}' } catch %{ }";
done done
fi fi
if [[ -f "${localconfdir}/kakrc" ]]; then
echo "source '${localconfdir}/kakrc'"
fi
} }
# define color scheme # define color scheme