Ubuntu 14.04 配置 oh-my-zsh

搞这个倒不是为了方便,只是为了好看,记录一下。

首先确保你安装了 zsh

sudo apt-get install zsh

使用终端安装 oh-my-zsh

curl

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

wget

sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

这时候跟着安装脚本来走,基本已经可以用了,只是需要美化一下,譬如 solarized 主题:

wget --no-check-certificate https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark
mv dircolors.ansi-dark .dircolors
eval `dircolors ~/.dircolors`

安装终端主题:

sudo apt-get install git-core
git clone https://github.com/sigurdga/gnome-terminal-colors-solarized.git
cd gnome-terminal-colors-solarized

应用终端主题:

./set_dark.sh
./set_light.sh

编辑: ~/.zshrc

增加自己的用户名:

DEFAULT_USER="plum"

修改主题:

ZSH_THEME="agnoster"

启用几个功能:

COMPLETION_WAITING_DOTS="true"
COMPLETION_WAITING_DOTS="true"

最后增加:

alias lsa="ls -A"
eval `dircolors ~/.dircolors`

这里需要确保 .dircolors 的确就是一开始下载的那个文件夹配色,不然会出现文件夹配色丢失的情况:

选区_603.png

最后你的主题可能还不正常,你需要启用 Powerline 特殊字体,方法这里有写:

https://gist.github.com/agnoster/3712874

最后成功如此:

选区_604.png

最后我用的是 Terminator 而不是 Gnome-terminal 但是大同小异。

👍❤️😂🎉🔥👀🤡🤔

4 条评论

  1. long
    long
    2016-03-27 14:46 Ubuntu x64Firefox 45.0中国北京北京市

    看了你的文章,我在Ubuntu Gnome配置好了,非常漂亮。多谢

    👍👎🤡❤️🔥👀😂🤔
  2. arisstz6
    arisstz6
    2016-08-25 22:28 Ubuntu x64Firefox 48.0中国河北省承德市

    好漂亮:-)

    👍👎🤡❤️🔥👀😂🤔
  3. Rocka
    Rocka Lv1
    2016-10-06 00:54 GNU/Linux x64Google Chrome 53.0.2785.143中国浙江省杭州市

    终于找到这一篇~(≧▽≦)/~
    多谢博主

    👍👎🤡❤️🔥👀😂🤔
  4. Well Honey
    Well Honey Lv4
    2017-01-13 02:57 Mac OS X 10.12.2Google Chrome 55.0.2883.95德国Baden-Wurttemberg

    Mac和Ubuntu都配好了,方法差不多的~~

    👍👎🤡❤️🔥👀😂🤔

添加新评论

😂🤡😎😡😁😋😭😑

目录

__empty__