arch-automated-installer/scripts/system-setup/neovim-setup.sh

16 lines
506 B
Bash
Raw Normal View History

2024-06-28 19:13:14 +00:00
#!/bin/bash
if [[ ! -d /home/$2/Software ]]; then
echo "mkdir /home/$2/Software"
fi
if [[ $1 == "Debian" ]]; then
echo "sudo apt-get -y install fzf ripgrep ninja-build gettext cmake unzip curl build-essential"
echo "git clone -b stable https://github.com/neovim/neovim /home/$2/Software"
echo "cd /home/$2/Software/neovim/ && make CMAKE_BUILD_TYPE=RelWithDebInfo && cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb"
fi
if [[ $1 == "Arch" ]]; then
echo "pacman -S neovim"
fi