.dotfiles/scripts/shells.sh
tombdf 72b8e700ec
Update .config/chezmoi/chezmoi.toml
Update .config/fish/config.fish
Update scripts/shells.sh
Update utils/helpers.sh
Update utils/packages
2024-12-20 02:57:31 +01:00

77 lines
2.7 KiB
Bash

#!/bin/bash
# Installing alternative shells
echo -e "${GREEN}Installing alternative shells...${DEFAULT}"
# Installing and configuring Zsh
echo -e "${BLUE}Setting up Zsh and Powerline...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "zsh powerline"
# Installing and configuring Fish
echo -e "${BLUE}Setting up Fish...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "fish"
mkdir -p ~/.config/fish/
# Installing prompt themes
echo -e "${BLUE}Installing Oh-My-Posh...${DEFAULT}"
check_installation "yay -S --noconfirm --needed" "oh-my-posh"
# Installing navigation and search tools
echo -e "${GREEN}Installing navigation and search tools...${DEFAULT}"
# Zoxide - An intelligent cd that learns your habits
echo -e "${BLUE}Setting up Zoxide and FZF...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "zoxide fzf"
# Installing modern alternatives to classic Unix commands
echo -e "${GREEN}Installing modern Unix tools...${DEFAULT}"
# lsd - A modern ls with a icons and coloring
echo -e "${BLUE}Installing lsd...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "lsd"
# rip - A modern alternative to rm
echo -e "${BLUE}Installing rip (rm-improved)...${DEFAULT}"
check_installation "yay -S --noconfirm --needed" "rm-improved-git"
# bat - A modern cat with syntax highlighting
echo -e "${BLUE}Installing bat...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "bat"
# ripgrep - A modern alternative to grep
echo -e "${BLUE}Installing ripgrep...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "ripgrep"
# fd - A modern alternative to find
echo -e "${BLUE}Installing fd...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "fd"
# sd - A modern alternative to sed
echo -e "${BLUE}Installing sd...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "sd"
# Installing maintenance tools
echo -e "${GREEN}Installing maintenance tools...${DEFAULT}"
# Topgrade - Universal update tool
echo -e "${BLUE}Installing Topgrade...${DEFAULT}"
check_installation "yay -S --noconfirm --needed" "topgrade"
# Tealdeer - A fast implementation of tldr
echo -e "${BLUE}Installing TLDR (tealdeer)...${DEFAULT}"
check_installation "sudo pacman -S --noconfirm --needed" "tealdeer"
# Delta - A viewer for git and diff output
echo -e "${BLUE}Installing Delta...${DEFAULT}"
check_installation "yay -S --noconfirm --needed" "git-delta"
# SSHS - A modern terminal user interface for ssh
echo -e "${BLUE}Installing SSHS...${DEFAULT}"
check_installation "yay -S --noconfirm --needed" "sshs"
# Changing the default shell to Fish
echo -e "${GREEN}Setting Fish as default shell...${DEFAULT}"
chsh -s $(which fish)
echo -e "${GREEN}Shell configuration completed${DEFAULT}"