-
Notifications
You must be signed in to change notification settings - Fork 0
/
installGarudaNvim.sh
executable file
·54 lines (47 loc) · 1.52 KB
/
installGarudaNvim.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env sh
#
# GarudaNvim installer for macOS.
# Welcome message
echo
echo "Welcome to GarudaNvim!"
echo "This installer is designed for macOS."
echo
echo "================================================================================="
echo
# Step 1: Check for existing Neovim configuration
echo "Step 1: Checking for existing Neovim configuration in ~/.config/nvim"
echo "---------------------------------------------------------------------------------"
if [ -d ~/.config/nvim ]; then
echo "ERROR: The directory ~/.config/nvim already exists."
echo " Please move it to a different location and try again."
echo
exit 1
fi
echo "INFO: No existing Neovim configuration found."
echo
echo
# Step 2: Cloning GarudaNvim repository
echo "Step 2: Installing GarudaNvim to ~/.config/nvim"
echo "---------------------------------------------------------------------------------"
git clone https://github.com/garudanvim/GarudaNvim.git ~/.config/nvim
cd ~/.config/nvim || exit 1
echo
echo
# Step 3: Removing the .git folder
echo "Step 3: Cleaning up"
echo "---------------------------------------------------------------------------------"
rm -rf .git
echo ".git folder removed."
echo
echo "================================================================================="
echo
# Success message
echo "SUCCESS: GarudaNvim has been correctly installed!"
echo "Happy Coding!"
echo
echo "================================================================================="
echo
# Opening GarudaNvim
echo "PRESS ENTER TO OPEN IT"
read -r
nvim