码迷,mamicode.com
首页 > 系统相关 > 详细

【ubuntu】配置zsh

时间:2019-05-07 16:52:53      阅读:173      评论:0      收藏:0      [点我收藏+]

标签:install   .com   补全   主题   echo   ons   highlight   添加   git clone   

1. 修改默认shell为zsh

chsh -s /bin/zsh

echo $SHELL$

2. 下载oh-my-zsh

wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | sh

3. 修改主题

vim ~/.zshrc

 ZSH_THEME="agnoster"

source ~/.zshrc

4. 添加语法高亮和自动补全功能

cd ~/.oh-my-zsh/custom/plugins

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git

git clone git://github.com/zsh-users/zsh-autosuggestions

vim ~/.zshrc

修改为

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

添加

source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

保存

source ~/.zshrc

 

【ubuntu】配置zsh

标签:install   .com   补全   主题   echo   ons   highlight   添加   git clone   

原文地址:https://www.cnblogs.com/itcsl/p/10826458.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!