2012-09-10 22:45:34 +04:00
|
|
|
def -shell-params runtime %{ %sh{
|
|
|
|
while (( "$#" )); do
|
|
|
|
echo "source '${kak_runtime}/$1'"
|
|
|
|
shift
|
|
|
|
done
|
|
|
|
}}
|
2012-01-14 05:04:08 +04:00
|
|
|
|
2012-09-10 22:45:34 +04:00
|
|
|
%sh{
|
|
|
|
if [[ -n "${XDG_CONFIG_HOME}" ]]; then
|
|
|
|
localconfdir="${XDG_CONFIG_HOME}/kak"
|
|
|
|
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
|
|
|
|
}
|
2012-09-17 21:02:08 +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 attribute green
|
|
|
|
colalias comment cyan
|
|
|
|
colalias macro magenta
|