aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkrolxon <krolyxon@tutanota.com>2025-12-10 13:00:56 +0530
committerkrolxon <krolyxon@tutanota.com>2025-12-10 13:00:56 +0530
commit371950d9007f8a2bfed903e28e255976d92c76f1 (patch)
tree151ac5ad105a42561b6c2aa1aab8ec7204c86155
parentedd16082d4dd79e68c44db7edcaac73d92d7e94b (diff)
install.sh: add nvim, and shell change logic
-rwxr-xr-xinstall.sh24
1 files changed, 23 insertions, 1 deletions
diff --git a/install.sh b/install.sh
index 4fe87f4..687cf61 100755
--- a/install.sh
+++ b/install.sh
@@ -144,7 +144,7 @@ fi
# Install aur packages
-read -rp "Do you wish to aur packages? [y/n]" install_aur_pkg
+read -rp "Do you wish to install aur packages? [y/n]" install_aur_pkg
# Install paru if it isn't already installed
if [[ $install_aur_pkg == y ]]; then
if ! command -v paru >/dev/null 2>&1; then
@@ -196,3 +196,25 @@ if [[ "$confirm" =~ ^[Yy]$ ]]; then
else
echo "Aborted"
fi
+
+# Setup neovim dotfiles
+read -rp "Clone neovim dotfiles as well? (y/N): " confirm
+if [[ "$confirm" =~ ^[Yy]$ ]]; then
+ echo "Taking backup of neovim config (if already exists)"
+ mv ~/.config/nvim{,.bak}
+ mv ~/.local/share/nvim{,.bak}
+ mv ~/.local/state/nvim{,.bak}
+ mv ~/.cache/nvim{,.bak}
+ git clone --depth=1 git@github.com:krolyxon/nvim.git ~/.config/nvim
+fi
+
+# Change default shell to zsh
+if [[ "$SHELL" != "$(which zsh)" ]]; then
+ read -rp "Change default shell to ZSH? (y/N): " confirm
+ if [[ "$confirm" =~ ^[Yy]$ ]]; then
+ echo "Changing default shell to zsh..."
+ chsh -s $(which zsh)
+ fi
+else
+ echo "Skipping: zsh is already the default shell"
+fi