配置zsh 主题 修改默认shell

先配置一下zsh oh-my-zsh

下载包

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

配置.zshrc文件

vim ~/.zshrc

在.zshrc文件中可以选择插件 当然也可以不用自己配,但是这个库里面有很多,还可以自己在插件基础上改

# Path to your oh-my-zsh installation.
export ZSH="/home/ubuntu/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"   #在此处改主题

修改linux默认shell 暴力法

echo $SHELL #查看当前的默认shell
SHELL="/bin/zsh" #这就可以了。很暴力。不过得去看好zsh的位置,弄错了可能要gg
上一篇:iTerm2终端搭配zsh shell插件配置


下一篇:UK Day42 - Mac修改Terminal主题