Dotfiles/setup/modules/shell.sh

69 lines
1.9 KiB
Bash

#!/bin/bash
sudo pacman -Syu zsh nvim curl
#cli dotfiles
echo "Installing bash and zsh setting files"
rm ~/.bashrc
rm ~/.zshrc
ln -s ~/Dotfiles/.bashrc ~/.bashrc
ln -s ~/Dotfiles/.zshrc ~/.zshrc
rm -rf ~/.config/starship.toml
ln -s ~/Dotfiles/starship.toml ~/.config/
rm -rf ~/.config/micro/
ln -s ~/Dotfiles/micro/ ~/.config/
#vim plug installer
curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
rm -rf ~/.config/nvim/
ln -s ~/Dotfiles/nvim/ ~/.config/
cp ~/Dotfiles/nvim/cyberqueer.vim ~/.local/share/nvim/site/plugged/vim-airline-themes/autoload/airline/themes/
rm -rf ~/.config/yazi/
ln -s ~/Dotfiles/yazi/ ~/.config/
rm -rf ~/.config/spotify-tui/
ln -s ~/Dotfiles/spotify-tui/ ~/.config/
cp ~/Dotfiles/resources/fflogo.svg ~/Pictures/fflogo.svg
# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash
# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"
# Download and install Node.js:
nvm install 22
# Verify the Node.js version:
node -v # Should print "v22.14.0".
nvm current # Should print "v22.14.0".
# Verify npm version:
npm -v # Should print "10.9.2".
#zsh setup
echo '
#starship setup
echo "Installing Starship"
curl -sS https://starship.rs/install.sh | sh
#ohmyzsh setup
echo "Installing oh my zsh"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
#ohmyzsh plugins
echo "Installing oh my zsh plugins"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
' | zsh
#zsh setup
echo "Setting up zsh"
chsh -s /usr/bin/zsh
#homectl update --shell=/usr/bin/zsh