您的位置:首页 > 其它

Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme

2016-07-23 13:04 1236 查看


Install Terminator (shell)

sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator


Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").


Install
ZSH

sudo apt-get install zsh


Restart your terminal. Choose option 2 for Z Shell configuration.

Don't forget to migrate your previous configurations (RVM, Rbenv...) from 
.bashrc
 to 
.zshrc



Install
Oh My ZSH

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


Setup
missing fonts (powerline)


Install
powerline font

cd
wget https://github.com/powerline/powerline/raw/develop/font/PowerlineSymbols.otf wget https://github.com/powerline/powerline/raw/develop/font/10-powerline-symbols.conf mv PowerlineSymbols.otf ~/.fonts/
mkdir -p .config/fontconfig/conf.d #if directory doesn't exists



Clean
fonts cache

fc-cache -vf ~/.fonts/



Move
config file

mv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/



Configure
ZSH

vim ~/.zshrc



Theme

Change [ZSH_THEME="robbyrussell"] to [ZSH_THEME="agnoster"]

ZSH_THEME="agnoster"



Change
theme colors to solarize

dconf
 is required if you don't already have it.

sudo apt-get install dconf-cli


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


I recommend you option 1 (dark theme) which is just great.

To activate dark solarize theme in Terminator just right click on the terminal,

Preferences>Profiles>Colors>Foreground and Background>Built-in schemes: Solarized dark Preferences>Profiles>Colors>Palette>Built-in schemes: Solarized


Change
directory colors to solarize

cd
wget https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark mv dircolors.ansi-dark .solarized


Open 
.zshrc
 and add the line:

eval `dircolors ~/.solarized/dircolors.ansi-dark`


Restart Terminator and you're done!


Ruby
developer (optional)


Plugins

If you are Ruby developer you can use these plugins by replacing plugins in 
.zshrc


plugins=(git rails rails3 ruby capistrano bundler heroku rake rvm autojump command-not-found python pip github gnu-utils history-substring-search zsh-syntax-highlighting)



Ruby
version prompt

(Add one of the line below into your 
.zshrc
 file)

RVM
users


RPROMPT="\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg[yellow]%}[%*]"



Rbenv
users


RPROMPT='%{$fg[yellow]%}$(rbenv version-name)%{$reset_color%}%'



That's
it!

转自:https://gist.github.com/renshuki/3cf3de6e7f00fa7e744a
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: