Skip to content

Instantly share code, notes, and snippets.

@danr
danr / plug.kak
Created March 5, 2017 16:57
simple Kakoune plugin manager
def plug -params 1 %{
%sh{
# Check out the repo to ~/build if it does not exist
if [[ ! -d $HOME/build/$1 ]]; then
(cd $HOME/build; git clone https://github.com/$1)
fi
# Source all .kak files in it
for file in $(echo $HOME/build/$(basename $1)/*.kak); do
echo source "$file"
done