Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nettrino committed Jun 2, 2023
1 parent 8fa4266 commit bde6a60
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Requirements

- Install [neovim](https://github.com/neovim/neovim/wiki/Installing-Neovim) 0.9.x or later

# Using install.sh

Run the following:
Expand All @@ -8,7 +12,6 @@ if [ -d ~/.config/nvim ]; then mv ~/.config/nvim ~/.config/nvim.old; fi && cd &&

# Manual Installation

- Install [neovim](https://github.com/neovim/neovim/wiki/Installing-Neovim)
- Install fonts
- Copy the current folder in ~/.config/nvim
- run
Expand Down
26 changes: 9 additions & 17 deletions install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/usr/bin/env bash

set -e

install_fonts_linux() {
echo "installing fonts. Clone is bulky but we're only installing a single font"
pushd /tmp
Expand Down Expand Up @@ -37,13 +35,6 @@ install_brew() {
fi
}

install_neovim_linux() {
# https://github.com/neovim/neovim/wiki/Installing-Neovim
curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
sudo mv nvim.appimage /usr/bin/nvim
}

get_linux_dist() {
if [ -f /etc/os-release ]; then
# freedesktop.org and systemd
Expand Down Expand Up @@ -111,25 +102,26 @@ setup_linux() {
sudo add-apt-repository -y ppa:neovim-ppa/stable
sudo apt-get -y update >/dev/null 2>/dev/null
echo "${OK_MSG} Installing required packages"
sudo apt-get -y install npm git curl 1>/dev/null 2>/dev/null
sudo apt-get -y install npm git curl python3-venv python3-pip 1>/dev/null 2>/dev/null
python3 -m pip install --user pipx
pipx ensurepath
python3 -m pipx ensurepath
elif [ "${OS}" == "CentOS" ] || \
[ "${OS}" == "RedHat" ] || \
[ "${OS}" == "Red Hat Enterprise Linux Server" ]; then
sudo yum install git curl npm
sudo yum install git curl npm python3-virtualenv python3-setuptools python3-devel python3-pip
python3 -m pip install --user pipx
pipx ensurepath
python3 -m pipx ensurepath
elif [ "${OS}" == "SLES" ]; then
sudo zypper install npm git curl
sudo zypper install npm git curl python3-virtualenv python3-pip
python3 -m pip install --user pipx
pipx ensurepath
python3 -m pipx ensurepath
elif [ "${OS}" == "Fedora" ]; then
sudo dnf install npm git curl
sudo dnf install npm git curl python3-virtualenv python3-pip
python3 -m pip install --user pipx
pipx ensurepath
python3 -m pipx ensurepath
fi

eval "$(exec /usr/bin/env -i "${SHELL}" -l -c "export")"
install_neovim_linux
}

Expand Down

0 comments on commit bde6a60

Please sign in to comment.