Merge remote-tracking branch 'maximbaz/improve-startup-time'

This commit is contained in:
Maxime Coste 2018-07-14 23:19:37 +10:00
commit 5d836a327f

View File

@ -28,7 +28,7 @@ def -params 1 -docstring "colorscheme <name>: enable named colorscheme" \
evaluate-commands %sh{ evaluate-commands %sh{
autoload_directory() { autoload_directory() {
find -L "$1" -type f -name '*\.kak' \ 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" echo "colorscheme default"