47 字
1 分钟
Zsh
2024-11-12

Install#

Mac#

mac默认就是zsh

Ubuntu#

sudo apt install zsh

Install Oh My Zsh#

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

国内镜像

sh -c "$(curl -fsSL https://gitee.com/shmhlsy/oh-my-zsh-install.sh/raw/master/install.sh)"

Install ZSH Plugins#

Install zsh-autosuggestions:

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Install zsh-syntax-highlighting:

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

.zshrc#

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="ys"
plugins=(
	git
	zsh-autosuggestions
	zsh-syntax-highlighting
	web-search
)
source $ZSH/oh-my-zsh.sh
source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Zsh
https://lordhamster.com/posts/zsh/
作者
LordHamster
发布于
2024-11-12
许可协议
CC BY-NC-SA 4.0