UOS使用ZSH终端教程

安装zsh

sudo apt install zsh

查看shells名单

cat /etc/shells 最后一个里面有zsh

修改shell为zsh   .就是shell名单中的

sudo chsh -s /bin/zsh

注销

通过Oh-my-zsh配置zsh

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

安装agnoster主题字体:

cd ~

git clone https://github.com/powerline/fonts.git --depth=1

cd fonts

 ./install.sh

 cd ..

 rm -rf fonts

安装agnoster主题:创建一个文件夹  拉代码  执行.install
    cd ~/.oh-my-zsh/themes   
    git checkout d6a36b1 agnoster.zsh-theme   、、或者https://github.com/fcamblor/oh-my-zsh-agnoster-fcamblor
  ./install 修改主题: vim
~/.zshrc ZSH_THEME="agnoster" 参考这个博客来写的 https://www.jianshu.com/p/fa82d932888b

猜你喜欢

转载自www.cnblogs.com/tarzen213/p/12636126.html
今日推荐