From 25b49b9ae11932667cb32a1e483ed1d4293ca1d2 Mon Sep 17 00:00:00 2001 From: Maxim Baz Date: Sun, 8 Jul 2018 15:18:31 +0200 Subject: [PATCH] Improve kakoune startup time by 33% --- share/kak/kakrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/kak/kakrc b/share/kak/kakrc index 03ef7139d..b6461ec1e 100644 --- a/share/kak/kakrc +++ b/share/kak/kakrc @@ -28,7 +28,7 @@ def -params 1 -docstring "colorscheme : enable named colorscheme" \ evaluate-commands %sh{ autoload_directory() { find -L "$1" -type f -name '*\.kak' \ - -exec printf 'try %%{ source "%s" } catch %%{ echo -debug Autoload: could not load "%s" }\n' '{}' '{}' \; + | sed 's/.*/try %{ source "&" } catch %{ echo -debug Autoload: could not load "&" }/' } echo "colorscheme default"