-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_shell.sh
24 lines (20 loc) · 1003 Bytes
/
setup_shell.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if ! command -v zsh > /dev/null; then
if [[ $(uname) == "Darwin" ]]; then
echo "installing zsh via brew"
brew install zsh;
elif [[ $(uname) == "Linux" ]]; then
sudo apt install zsh;
fi
fi
sudo chsh -s $(which zsh);
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
# zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Powerlevel10k
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
# copy .zshrc file
curl -fsSL https://raw.githubusercontent.com/Paulchen5/shellSetup/main/.zshrc > ~/.zshrc
# copy .p10k.zsh file
curl -fsSL https://raw.githubusercontent.com/Paulchen5/shellSetup/main/.p10k.zsh > ~/.p10k.zsh