-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·24 lines (19 loc) · 1.09 KB
/
install.sh
File metadata and controls
executable file
·24 lines (19 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
echo "(¬‿¬ ) Installing this Neovim Configuration..."
# Backup existing config if it exists
if [ -d "$HOME/.config/nvim" ]; then
echo "(b ᵔ▽ᵔ)b Backing up existing config..."
mv "$HOME/.config/nvim" "$HOME/.config/nvim.backup.$(date +%Y%m%d_%H%M%S)"
echo " ٩(◕‿◕)۶ Backup created!"
fi
# Clone the repository
echo "<( ̄︶ ̄)> Downloading configuration..."
echo "(=^・ェ・^=) Btw if installation fails then restart it again by re-running the script, it mostly fails due to bad internet connection..."
git clone https://github.com/Hashir-10/Nvim-config.git "$HOME/.config/nvim"
# Remove git history to prevent accidental commits
echo "(o^ ^o)/ Cleaning up git history..."
rm -rf "$HOME/.config/nvim/.git"
echo "(。•̀ᴗ-)✧ Installation complete!"
echo "(つ≧▽≦)つ You can now open Neovim and enjoy the configuration!, also after opening nvim wait for a while to let lazy install all the plugins"
echo "ʕಠᴥಠʔ Note: This config is now independent - no risk of pushing to the original repo."
echo "ଘ(੭ˊᵕˋ)੭* ੈ✩‧₊˚ Enjoyyyy !!!"