oh-my-zsh 安装

287 阅读1分钟

oh-my-zsh安装

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

国内使用:

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

或者:

	git clone https://gitee.com/mirrors/oh-my-zsh.git

github上的插件:

	https://github.com/zsh-users/zsh-syntax-highlighting	 
	https://github.com/zsh-users/zsh-autosuggestions

国内使用下面的链接:

	git clone https://gitee.com/minhanghuang/zsh-syntax-highlighting.git
	git clone https://gitee.com/minhanghuang/zsh-autosuggestions.git

修改用户目录下的 .zshrc 文件

	vim ~/.zshrc

编辑

	plugins=(git
                zsh-syntax-highlighting
                zsh-autosuggestions
                )

保存退出。

	source ~/.zshrc