zoukankan      html  css  js  c++  java
  • shell和vim的配色

    shell的默认配色

    mac,需要用iTerm2, 选自带的solarized即可
    debian ,选择自带的 solarized dark

    vim配色

    git clone git://github.com/altercation/solarized.git
    
    mkdir -p ~/.vim/colors
    cp solarized/vim-colors-solarized/colors/solarized.vim ~/.vim/colors/
    rm -rf solarized

    vim ~/.vimrc

    set nu
    syntax enable
    set background=dark
    set term=xterm-256color
    
    if system('uname') == "Linux
    "
        let g:solarized_termcolors=256
        let g:solarized_termctrans=1
    
        "开启linux下的灰蒙蒙的遮罩
        let g:solarized_termtrans=1
    endif
    colorscheme solarized

    oh-my-zsh,传说中的神器,支持非常多的插件

    sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
    
    vim ~/.zshrc
    ZSH_THEME="agnoster"

    agnoster主题需要powerline字体

    git clone https://github.com/powerline/fonts/
    ./install.sh

    iTerm2的字体设置,选择带powerline的(固定宽度的栏目里面的几乎都是powerline字体),然而我觉得比起monaco,都不太好看

    debian下需要切换默认shell

    chsh -s /bin/zsh
    重启
  • 相关阅读:
    Linux之wget命令
    Markdown语法
    Windows实时预览markdown
    Python基础教程,Python入门教程(非常详细)
    【转载】UNICODE与ASCII的区别
    Python之虚拟环境
    Linux文件系统管理
    Linux权限管理
    linux用户和用户组管理
    linux 软件安装
  • 原文地址:https://www.cnblogs.com/ziyouchutuwenwu/p/5734339.html
Copyright © 2011-2022 走看看