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

14 lines
273 B
Bash
Raw Normal View History

2024-01-06 16:19:26 +01:00
#!/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