Improve kakoune startup time by 33%
This commit is contained in:
parent
2659912220
commit
25b49b9ae1
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user