home/share/kak/kakrc

35 lines
791 B
Plaintext
Raw Normal View History

# define color scheme
face value red
face type yellow
face identifier green
face string magenta
face error default,red
face keyword blue
face operator yellow
face attribute green
face comment cyan
face meta magenta
def -shell-params runtime %{ %sh{
2013-03-22 13:45:52 +01:00
while [ $# -gt 0 ]; do
echo "source '${kak_runtime}/$1'"
shift
done
}}
%sh{
2013-03-22 13:45:52 +01:00
if [ -n "${XDG_CONFIG_HOME}" ]; then
localconfdir="${XDG_CONFIG_HOME}/kak"
else
localconfdir="$HOME/.config/kak"
fi
2013-03-22 13:45:52 +01:00
if [ -d "${localconfdir}/autoload" ]; then
2014-07-15 12:48:03 +02:00
for rcfile in ${localconfdir}/autoload/*.kak; do
echo "try %{ source '${rcfile}' } catch %{ }";
done
fi
2013-03-22 13:45:52 +01:00
if [ -f "${localconfdir}/kakrc" ]; then
echo "source '${localconfdir}/kakrc'"
fi
}