UOS-deepin设置zsh和oh-my-zsh
安装zsh
sudo apt-get install zsh
cd /bin
find -name zsh #n安装成功
chsh -h # 查看用法
chsh -s /bin/zsh # 替换了
安装Git
sudo apt-get install git
安装oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
下载失败报443,
安装oh-my-zsh
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
备份已有的zshrc, 替换zshrc
cp ~/.zshrc ~/.zshrc.orig
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
配置主题, 可以通过修改~/.zshrc
中的环境变量ZSH_THEME
来完成
ZSH_THEME="bira"