1
0
Fork 0
forked from ahurac/dotfiles
ahuarc-dotfiles/config/nvim/paqadd.sh

13 lines
273 B
Bash
Executable file

#!/bin/sh -x
is_gitrepo() {(
cd "$1" || return
git status
) > /dev/null 2> /dev/null
}
clone_ifnalready() {
is_gitrepo "$1" || git clone --depth=1 https://github.com/savq/paq-nvim.git "$1"
}
clone_ifnalready ~/.local/share/nvim/site/pack/paqs/start/paq-nvim