I was thinking of a bin directory to put all my kak related script and binary. This directory could be
$kak_opt variables, binary from this folder would be only loaded from inside kakoune ( unless the user add
.config/kak/bin to his $PATH of course ) .
I see a few advantages with this:
- those binary don’t need to be in my bash everday $PATH because they are just used inside kakoune
- I don’t have my kak script filling my ~/bin
- don’t have them filling my shell autocomplete suggestion
- I can have one monolic “pull and play” git repo that include all the external binary I need for my kakoune config
- It could be usefull for plugin to know that such a folder exist to put their binary.
kak-lsp's install intruction ask you to put the binary into a folder in you
$PATH. If such
binfolder existed (and was part of kakoune like the
autoloadfolder) this step could be automated.
- idk, it just feel more clean and organised that way
It’s actually easy to implement, I remplaced my
.local/bin/kak with the following bash script:
I hope it doesn’t slow down my kakoune too much.
I’ll see how well it work ! tell me what you think about it