-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-omyzsh.sh
More file actions
15 lines (12 loc) · 810 Bytes
/
install-omyzsh.sh
File metadata and controls
15 lines (12 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
# Step 1: Install zsh and git
apt update;apt install zsh git -y
# Step 2: Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Step 3: Install zsh plugin
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zdharma/history-search-multi-word.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/history-search-multi-word
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
sed -i 's/^plugins=.*/plugins=(git z kubectl zsh-autosuggestions history-search-multi-word zsh-syntax-highlighting)/g' ~/.zshrc
sed -i 's/^ZSH_THEME=.*/ZSH_THEME=cloud/g' ~/.zshrc
source ~/.zshrc