Air9

And it's turtles all the way down...

⇝

Air9

And it's turtles all the way down...

iTerm下配置Powerline

2016-03-09

Powerline

今天指压师折腾powerline的时候也卡住了,帮他搞定之后,不禁想起以前我折腾这个的时候,网上各种教程都莫名其妙忽略了最关键的iTerm调字体部分,干脆把自己当时写的一篇笔记改一改发blog算了

For zsh

  • 手动下载 powerline并解压到主目录

    或者

    $ git clone https://github.com/powerline/powerline

  • $ vim ~/.zshrc

在zsh配置文件里加入一行:

. ~/powerline-develop/powerline/bindings/zsh/powerline.zsh

然后启用新配置:

$ source ~/.zshrc

  • 手动下载 powerline fonts

    或者

    $ git clone https://github.com/powerline/fonts

  • 然后安装:

    $ cd fonts

    $ ./install.sh

  • 打开 iTerm - Preferences - Profiles - Text

    将 Regular Font & Non-ASCII Font 都改为带有 for Powerline后缀的字体

    我感觉看着比较舒服的是Source Code Pro for Powerline

    选好的瞬间,iTerm里面的预览效果应该就已经出来了

    稍微有点蛋疼的是,iTerm调了透明的时候,箭头符号却不会跟着透明,看着不太顺眼

For vim

$ vim ~/.vimrc

加入:

set rtp+=~/powerline-develop/powerline/bindings/vim
set guifont=Monaco\ for\ Powerline:h14.5
set laststatus=2
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set number
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8
syntax enable
set background=light    
  • iTerm
  • Powerline
  • Mac

Show >>

« Prev123 Next »
© 2018 Air9
Hexo Theme Yilia by Litten
  • ⇝

tag:

  • Privoxy
  • Shadowsocks
  • gfw
  • Coursera
  • JavaScript
  • AngularJS
  • ngResource
  • Python
  • Flask-SQLAlchemy
  • Alembic
  • Flask-Migrate
  • Flask
  • relationship
  • backref
  • Linux
  • x86
  • elf
  • main
  • libc
  • start
  • init
  • gdb
  • sorted
  • key
  • Closure
  • Decorator
  • func_defaults
  • Q
  • asm
  • align
  • capstone
  • ida
  • Spider
  • ThreadPool
  • logging
  • argparse
  • sqlite
  • requests
  • doctest
  • SublimeREPL
  • ExpandRegion
  • Anaconda
  • MarkdownEditing
  • Archlinux
  • pip
  • vmtools
  • bootstrap
  • keyboard
  • tagIndex
  • Brackets
  • gulp
  • browser-sync
  • python
  • ropgadget
  • Refactoring
  • git
  • github
  • ssh
  • hexo
  • rss
  • sitemap
  • idapython
  • idc
  • ionic
  • rop
  • keystone
  • unicorn
  • Mac
  • mongodb
  • MySQL
  • UTF-8
  • markdown
  • evernote
  • sublime
  • vscode
  • proxy
  • iTerm
  • polipo
  • Charles
  • 科学上网
  • Powerline
  • cookbook
  • closure
  • factory
  • string
  • python-magic
  • mime
  • apt-get
  • raspi
  • ANSI
  • termcolor
  • colorama
  • redis
  • brew
  • tmux
  • 字符集
  • 编码
  • ASCII
  • Unicode

    缺失模块。
    1、请确保node版本大于6.2
    2、在博客根目录(注意不是yilia根目录)执行以下命令:
    npm i hexo-generator-json-content --save

    3、在根目录_config.yml里添加配置:

      jsonContent:
        meta: false
        pages: false
        posts:
          title: true
          date: true
          path: true
          text: false
          raw: false
          content: false
          slug: false
          updated: false
          comments: false
          link: false
          permalink: false
          excerpt: false
          categories: false
          tags: true