Krolyxon
Commit 371950d

Branches

Refs →

aurora371950d

install.sh: add nvim, and shell change logic

Author
krolxon
Date
2025-12-10 13:00 +0530
Parent
edd1608
Commit
371950d9007f8a2bfed903e28e255976d92c76f1

+23 −1

1 file changed

  1. M install.sh +23 −1
M install.sh View
@@ -144,7 +144,7 @@ fi
144144
145145
146146 # Install aur packages
147−read -rp "Do you wish to aur packages? [y/n]" install_aur_pkg
147+read -rp "Do you wish to install aur packages? [y/n]" install_aur_pkg
148148 # Install paru if it isn't already installed
149149 if [[ $install_aur_pkg == y ]]; then
150150 if ! command -v paru >/dev/null 2>&1; then
@@ -196,3 +196,25 @@ if [[ "$confirm" =~ ^[Yy]$ ]]; then
196196 else
197197 echo "Aborted"
198198 fi
199+
200+# Setup neovim dotfiles
201+read -rp "Clone neovim dotfiles as well? (y/N): " confirm
202+if [[ "$confirm" =~ ^[Yy]$ ]]; then
203+ echo "Taking backup of neovim config (if already exists)"
204+ mv ~/.config/nvim{,.bak}
205+ mv ~/.local/share/nvim{,.bak}
206+ mv ~/.local/state/nvim{,.bak}
207+ mv ~/.cache/nvim{,.bak}
208+ git clone --depth=1 git@github.com:krolyxon/nvim.git ~/.config/nvim
209+fi
210+
211+# Change default shell to zsh
212+if [[ "$SHELL" != "$(which zsh)" ]]; then
213+ read -rp "Change default shell to ZSH? (y/N): " confirm
214+ if [[ "$confirm" =~ ^[Yy]$ ]]; then
215+ echo "Changing default shell to zsh..."
216+ chsh -s $(which zsh)
217+ fi
218+else
219+ echo "Skipping: zsh is already the default shell"
220+fi