nvim upd
This commit is contained in:
parent
ec42872f7a
commit
47039ef539
@ -1,39 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Step 0. Detect the OS
|
|
||||||
if [[ "$OSTYPE" == "darwin"* ]]; then
|
|
||||||
OS="macos"
|
|
||||||
elif [[ -f /etc/os-release ]]; then
|
|
||||||
# shellcheck disable=SC1091
|
|
||||||
. /etc/os-release
|
|
||||||
case "$ID" in
|
|
||||||
ubuntu|pop|linuxmint|zorin|elementary|kdeneon)
|
|
||||||
OS="ubuntu"
|
|
||||||
;;
|
|
||||||
arch|manjaro|endeavouros|garuda|artix)
|
|
||||||
OS="arch"
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
err "Unsupported Linux distribution: $ID"
|
|
||||||
exit 1
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
else
|
|
||||||
err "Cannot determine OS."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "🔎 Determined OS: $OS"
|
|
||||||
|
|
||||||
# Step 1: Install Neovim
|
# Step 1: Install Neovim
|
||||||
if [[ $OS == "macos" ]]; then
|
sudo apt install neovim -y
|
||||||
brew install neovim
|
|
||||||
elif [[ $OS == "ubuntu" ]]; then
|
|
||||||
sudo apt install neovim -y
|
|
||||||
elif [[ $OS == "arch" ]]; then
|
|
||||||
sudo pacman -Sy --noconfirm neovim xclip wl-clipboard
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo "✅ Neovim installed"
|
echo "✅ Neovim installed"
|
||||||
|
|
||||||
# Step 2: Create the Neovim config directory
|
# Step 2: Create the Neovim config directory
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user