- 确定当前使用shell,一般为bash
echo $SHELL
- 检查系统支持的shell
cat /etc/shells
- zsh的安装
sudo apt-get install zsh
- 切换shell,生效需重启系统。
chsh -s /bin/zsh
安装oh-my-zsh
-
安装oh-mys-zsh,可以用curl和wget,如果没有现装
sudo apt-get install git sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- 安装pwoerline
git clone git://github.com/jeremyFreeAgent/oh-my-zsh-powerline-theme
sudo ./oh-my-zsh-powerline-theme/install.sh
- 安装PowerFonts
git clone https://github.com/powerline/fonts.git
sudo ./fonts/install.sh
- 设置oh my zsh 配置文件
配置主题需要进入oh my zsh配置文件“ ~/.zshrc“设置
vim ~/.zshrc
# ZSH_THEME="robbyrussel" 修改此项为设置主题
ZSH_THEME="powerline"
重启终端命令行,即更换了powerline主题
定制terminal终端,安装xfce terminal
sudo apt-get install xfce4
配置xfce
- 右键xfce去掉显示菜单栏的勾
-
配置首选项,配置字体,背景图,配色方案