This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |