dotfiles/script/installvimplugin

17 lines
344 B
Plaintext
Raw Normal View History

2021-04-05 07:59:54 +00:00
#!/usr/bin/env bash
#
# Install a vim plugin from Git (into start directory for now)
set -e
if [ -z "$1" ]; then
echo "Usage: installvimplugin <git url>"
exit 1
fi
basename=$(basename "$1" .git)
2021-04-05 14:42:42 +00:00
dirname="$HOME/.vim/pack/git-plugins/start"
mkdir -p "$dirname"
cd "$dirname"
2021-04-05 07:59:54 +00:00
git clone https://github.com/dense-analysis/ale.git "$basename"