diff --git a/share/kak/kakrc b/share/kak/kakrc index 03ef7139..b6461ec1 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"