Ubuntu 14.04 + Terminator + Oh My ZSH with Agnoster Theme
2016-07-23 13:04
1241 查看
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
.bashrcto
.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 fontcd 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 cachefc-cache -vf ~/.fonts/
Move
config filemv 10-powerline-symbols.conf ~/.config/fontconfig/conf.d/
Configure
ZSHvim ~/.zshrcChange [ZSH_THEME="robbyrussell"] to [ZSH_THEME="agnoster"]
ThemeZSH_THEME="agnoster"
Change
theme colors to solarizedconfis required if you don't already have it.sudo apt-get install dconf-cligit 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 solarizecd wget https://raw.githubusercontent.com/seebi/dircolors-solarized/master/dircolors.ansi-dark mv dircolors.ansi-dark .solarized
Open.zshrcand add the line:eval `dircolors ~/.solarized/dircolors.ansi-dark`
Restart Terminator and you're done!
Ruby
developer (optional)If you are Ruby developer you can use these plugins by replacing plugins in
Plugins.zshrcplugins=(git rails rails3 ruby capistrano bundler heroku rake rvm autojump command-not-found python pip github gnu-utils history-substring-search zsh-syntax-highlighting)(Add one of the line below into your
Ruby
version prompt.zshrcfile)
RVM
usersRPROMPT="\$(~/.rvm/bin/rvm-prompt s i v g)%{$fg[yellow]%}[%*]"
Rbenv
usersRPROMPT='%{$fg[yellow]%}$(rbenv version-name)%{$reset_color%}%'转自:https://gist.github.com/renshuki/3cf3de6e7f00fa7e744a
That's
it!
相关文章推荐
- SVN 服务器搭建
- UVA 11076-Add Again
- Java 输入n,打印1!+2!+3!+...+n!的值"-----用递归求解
- 利用 LeakCanary 来检查 Android 内存泄漏
- DICOM医学图像处理:DICOM存储操作之“多幅BMP图像数据存入DCM文件”
- hdu2216 Game III--BFS(待解决)
- ExtJS初体验
- Caffe --- blob code
- c 运算符优先级
- android飞机大战
- Catalyst揭秘 Day3 sqlParser解析
- soft raid5阅读笔记之十四--resync和recovery的区别
- 53.You set the following parameters in the parameter file and restarted the database: MEMORY_MAX_TAR
- Javascript前端验证码的实现
- soft raid5阅读笔记之十三--异或操作
- 在 RStudio 下使用 R 的基本功能
- React Native ios开发第一课
- React Native ios开发第一课
- React Native ios开发第一课
- Python自定义豆瓣电影种类,排行,点评的爬取与存储(进阶下)