editor/neovim/install: refactor + don't reinstall on arch
This commit is contained in:
parent
2fd806d3db
commit
bbab9de563
|
@ -8,16 +8,15 @@ case "$OSTYPE" in
|
||||||
brew install --HEAD neovim/neovim/neovim
|
brew install --HEAD neovim/neovim/neovim
|
||||||
;;
|
;;
|
||||||
linux*)
|
linux*)
|
||||||
if [ -f /etc/arch-release ]; then
|
if [[ -f /etc/arch-release ]]; then
|
||||||
sudo pacman --noconfirm -S make neovim python-neovim
|
sudo pacman --needed --noconfirm -S make neovim python-neovim
|
||||||
elif [ -f /etc/debian_version ]; then
|
elif [[ -f /etc/debian_version ]]; then
|
||||||
sudo apt-get install -y neovim python3-neovim
|
sudo apt-get install -y neovim python3-neovim
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ ! -d "$HOME/.vim" ]
|
if [[ ! -d "$HOME/.vim" ]]; then
|
||||||
then
|
|
||||||
git clone --recursive "hlissner/.vim" "$HOME/.vim"
|
git clone --recursive "hlissner/.vim" "$HOME/.vim"
|
||||||
cd "$HOME/.vim"
|
cd "$HOME/.vim"
|
||||||
make install
|
make install
|
||||||
|
|
Loading…
Reference in a new issue