riobard/bash-powerline
소개
순수 Bash 스크립트로 구현한 Powerline 스타일 Bash 프롬프트입니다. https://github.com/riobard/zsh-powerline도 참고하세요.
개발 도구What you can do
- Git: show branch name, tag name, or unique short hash.
- Git: show "*" symbol with uncommited modifications.
- Git: show "↑" symbol and number of commits ahead of remote.
- Git: show "↓" symbol and number of commits behind remote.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- -2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalbash-powerline
Powerline for Bash in pure Bash script.

Features
- Git: show branch name, tag name, or unique short hash.
- Git: show "*" symbol with uncommited modifications.
- Git: show "↑" symbol and number of commits ahead of remote.
- Git: show "↓" symbol and number of commits behind remote.
- Platform-dependent prompt symbols.
- Color-coded prompt symbol according to previous command execution status.
- Use Bash builtin when possible to reduce delay. Delay sucks!
- No need for patched fonts.
Installation
Download the Bash script
curl https://raw.githubusercontent.com/riobard/bash-powerline/master/bash-powerline.sh > ~/.bash-powerline.sh
And source it in your .bashrc
source ~/.bash-powerline.sh
For best result, use Solarized colorscheme for your terminal emulator. Or hack your own colorscheme by modifying the script. It's really easy.
Why?
This script is inspired by powerline-shell, which is implemented in Python. Python scripts are much easier to write and maintain than Bash scripts, but invoking Python interpreter introduces noticable delay to draw. I hate delays, so I ported just the part I need to pure Bash script.
The other reason is that I don't like the idea of patching fonts. The font patching mechanism from the original Powerline does not work with the bitmap font (Apple Monaco without anti-aliasing) I use on non-retina screens. I'd rather stick with existing unicode symbols.
See also
- zsh-powerline: Same thing but for Zsh.
- powerline: Unified Powerline written in Python. This is the future of all Powerline derivatives.
- vim-powerline: Powerline in Vim writtien in pure Vimscript. Deprecated.
- tmux-powerline: Powerline for Tmux written in Bash script. Deprecated.
- powerline-shell: Powerline for Bash/Zsh/Fish implemented in Python. Might be merged into the unified Powerline.
- emacs powerline: Powerline for Emacs
관련 프로젝트 살펴보기
불러오는 중…