forked from ahurac/dotfiles
14 lines
273 B
Bash
14 lines
273 B
Bash
|
#!/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
|