linux终端使用terminator+zsh并且使用oh my zsh美化

  1. 安装terminator:
sudo apt-get install terminator
  1. 安装zsh取代bash:
    sudo apt-get install zsh
    将zsh设置为默认的shell:
    chsh -s $(which zsh)
    重启后看到配置选项,选择第二个

  2. 安装oh my zsh
    sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

  3. 安装Powerline fonts
    sudo apt-get install fonts-powerline

  4. 使用vi ~/.zshrc里面
    change ZSH_THEME=“robbyrussell” to ZSH_THEME=“agnoster”

  5. 安装Solarized color

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git ~/.solarized
cd ~/.solarized
./install.sh

选择选项一

eval `dircolors ~/.dir_colors/dircolors`
  1. 在terminator配置里面:
    Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark
    Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized

  2. 安装Autosuggestions,自动提示:
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    然后在.zshrc里面配置plugins=(zsh-autosuggestions)
    然后使用→箭头使用提示

  3. 去掉hostname,占位置:
    zshrc加上:prompt_context() {}

  • 1
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值