GithubHelp home page GithubHelp logo

a110605 / powerline-plugin Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.04 MB

A beautiful plugin for tmux, vim and shell prompt. For more information visit https://github.com/powerline/powerline

License: MIT License

Python 100.00%

powerline-plugin's Introduction

Powerline

Powerline is a statusline plugin for vim, and provides statuslines and prompts for several other applications, including zsh, bash, tmux, IPython, Awesome and Qtile. https://github.com/powerline/powerline

Shell Prompt

Vim Screenshot

Tmux status bar

Installation

1. Prequisitions

sudo apt-get install python-pip python git

2. Download and install powerline plugin

Ubuntu version greater than 14.04

# sudo apt-get install powerline

MacOS X

# git clone https://github.com/a110605/powerline-plugin
# cd powerline-plugin
# ./install.py

3. Modify .bash_profile

# vim ~/.bash_profile

Append the following code to .bash_profile

function powerline_shell() {
   export PS1="$(~/powerline-shell/powerline-shell.py $? 2> /dev/null)"
}
export PROMPT_COMMAND="powerline_shell; $PROMPT_COMMAND"

4. Set terminal font

# git clone https://github.com/a110605/powerline-font
# cd powerline-font
# ./install.py

5. Set tmux-powerline

$ git clone https://github.com/a110605/tmux-powerline.git

Now append your ~/.tmux.conf to use the scripts:

set-option -g status on
set-option -g status-interval 2
set-option -g status-justify "centre"
set-option -g status-left-length 60
set-option -g status-right-length 90
set-option -g status-left "#(~/path/to/tmux-powerline/powerline.sh left)"
set-option -g status-right "#(~/path/to/tmux-powerline/powerline.sh right)"

More detail install information, visit Powerline Official Documents and tmux-powerline

References

powerline-plugin's People

Contributors

a110605 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.