aurora371950d
install.sh: add nvim, and shell change logic
+23 −1
1 file changed
- M install.sh +23 −1
| @@ -144,7 +144,7 @@ fi | |||
| 144 | 144 | ||
| 145 | 145 | ||
| 146 | 146 | # 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 | |
| 148 | 148 | # Install paru if it isn't already installed | |
| 149 | 149 | if [[ $install_aur_pkg == y ]]; then | |
| 150 | 150 | if ! command -v paru >/dev/null 2>&1; then | |
| @@ -196,3 +196,25 @@ if [[ "$confirm" =~ ^[Yy]$ ]]; then | |||
| 196 | 196 | else | |
| 197 | 197 | echo "Aborted" | |
| 198 | 198 | 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 | |