Ubuntu配色方案

来源:互联网 发布:js字符串格式化时间 编辑:程序博客网 时间:2024/05/22 10:23

配色方案

GNU LS

我最喜欢solar主题

相关网站

LS Solarized

下载主题

git clone https://github.com/seebi/dircolors-solarized

配置主题

指定你的喜欢的配色方案,一般用户可以在.bashrc中加入一行
eval dircolors path/to/dircolors

注意:tmux ls 不起作用?
export TERM=”screen-256colors”

VIM Solarized Themes

相关网站

vim-colors-solarized

相关网站

$ git clone git@github.com:altercation/vim-colors-solarized.git

复制主题到相应目录

cp ~/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/

配置主题

syntax enable
set background=dark
colorscheme solarized

ZSH

安装z shell

Options1:

sudo apt-get install zsh

Options2:

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

设置默认SHELL

chsh -s /bin/zsh ; sudo reboot
重启电脑生效

安装powerline字体

wget https://gist.githubusercontent.com/qrush/1595572/raw/417a3fa36e35ca91d6d23ac961071094c26e5fad/Menlo-Powerline.otf
双击字体完成安装 然后安装皮肤 在~/.oh-my-zsh/themes目录下执行

安装agnoster.zsh-theme

在~/.oh-my-zsh目录下的themes也有agnoster.zsh-theme,但是它会乱码.所以通过一下网站获取改进版的themes直接覆盖原来的

wget https://gist.githubusercontent.com/agnoster/3712874/raw/c3107c06c04fb42b0ca27b0a81b15854819969c6/agnoster.zsh-theme

修改~/.zshrc文件

在.bashrc添加一下内容

ZSH_THEME=”agnoster”
export DEFAULT_USER=”普通用户运行whoami的结果填在这里” #root用户不需要

使配置生效

source ~/.bashrc

终端配色

git clone git://github.com/sigurdga/gnome-terminal-colors-solarized.git

cd gnome-terminal-colors-solarized 到该目录下运行配色脚本:

./set_dark.sh 或./set_light.sh,可以自由切换深色和浅色。或者./solarize 也可切换,比如执行一次是dark,再一次变light。如此交替。

0 0
原创粉丝点击