ubuntu配置zsh

Posted itcsl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu配置zsh相关的知识,希望对你有一定的参考价值。

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的主要内容,如果未能解决你的问题,请参考以下文章

Ubuntu配置静态IP

ubuntu网卡不配置ip怎么启动网卡

ubuntu配置鼠标滚轮

ubuntu网卡配置问题(急急急)

ubuntu 配置jdk误删配置文件东西如何还原

ubuntu 多网卡配置