From a93ce93918ac89bf6c5487550bcb68b544e698e7 Mon Sep 17 00:00:00 2001 From: Adam <24621027+WhiteDopeOnPunk@users.noreply.github.com> Date: Mon, 6 Feb 2023 20:11:53 -0500 Subject: [PATCH] get non-ancient version of neovim --- .scripts/doors/install_min_ubuntu | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/.scripts/doors/install_min_ubuntu b/.scripts/doors/install_min_ubuntu index b940d78..9853923 100755 --- a/.scripts/doors/install_min_ubuntu +++ b/.scripts/doors/install_min_ubuntu @@ -3,15 +3,31 @@ # Base sudo apt-get -y install \ btop \ - neovim \ byobu \ zsh \ - nnn + nnn && + +# neovim +sudo apt-get -y install software-properties-common && +sudo add-apt-repository -y ppa:neovim-ppa/stable && +sudo apt-get -y update && +sudo apt-get -y install neovim && +sudo apt-get -y install python3-dev python3-pip && +sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 && +sudo update-alternatives --config vi && +sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 && +sudo update-alternatives --config vim && +sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60 && +sudo update-alternatives --config editor && # Packer -git clone --depth 1 https://github.com/wbthomason/packer.nvim\ - ~/.local/share/nvim/site/pack/packer/start/packer.nvim +if ! test -d ~/.local/share/nvim/site/pack/packer/start/packer.nvim; then + git clone --depth 1 https://github.com/wbthomason/packer.nvim\ + ~/.local/share/nvim/site/pack/packer/start/packer.nvim +fi && # OhMyZsh -sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && +if ! test -d .config/zsh/ohmyzsh; then + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" +fi && sudo chsh -s /bin/zsh $USER