_install_shell
"/home/yossef/notes/git/scripts/_install_shell.md"
path: git/scripts/_install_shell.md
- **fileName**: _install_shell
- **Created on**: 2025-03-26 15:09:49
my script for install and setup shell for me
#!/usr/bin/env bash
RC='\e[0m'
RED='\e[31m'
YELLOW='\e[33m'
GREEN='\e[32m'
install_zsh_bash() {
echo -e "${GREEN}-- starting choose config for zsh or bash${RC}"
echo -e "${GREEN}1- zsh -> dafault${RC}"
echo -e "${GREEN}2- bash${RC}"
read -rp "enter the option: " option
case "${option}" in
1)
sh -c "$(curl -fsSL \
https://raw.githubusercontent.com\
/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh "$USER"
echo -e "${GREEN}Shell changed to zsh for user $USER.${RC}"
;;
2)
sudo /home/$USER/dotfiles/mybash-config/setup-arch.sh
chsh -s /bin/bash "$USER"
echo -e "${GREEN}Shell changed to bash for user $USER.${RC}"
;;
*)
sh -c "$(curl -fsSL \
https://raw.githubusercontent.com\
/ohmyzsh/ohmyzsh/master/tools/install.sh)"
chsh -s /bin/zsh "$USER"
echo -e "${GREEN}Shell changed to zsh for user $USER.${RC}"
;;
esac
}
install_zsh_bash
continue:./_install_sxk_switch.md
before:./install_rust_cargo.md