Minimalistic/responsive ZSH prompt inspired by powerline.
Tiny & minimalistic/responsive ZSH prompt inspired by powerline.
This is fast and tiny set of ZSH scripts providing some nice ZSH setup, including powerline-inspired prompt and some other enhancements. The prompt offers some nice visual experience and information, including Git repositories metadata.
This is pure ZSH script and should work on any platform supported by ZSH. You do not need anything else like oh-my-zsh and similar shit. Just plain old working ZSH and terminal emulator with support of 255 colors. Tested on Linux (Terminix) and on Cygwin (mintty). So what exactly you need is:
You do not need anything else, like powerline-enabled font. This prompt does NOT use special "powerline" characters, nor special UTF-8 characters. It relies on ASCII characters where possible. The prompt uses standard 8/16 colors, so that your terminal emulator color themes will work.
This is simple prompt which shows:
utilities
scriptThere is additional utilities.zsh
script which offers some extra goodies:
Ctrl+Left/Right
- move cursor one word left/right,Home/End
- go to beginning/end of line,Ctrl+Backspace/Delete
- delete whole word left/right from cursor,Ctrl+Up/Down
- complete command line with previous/next matching item from history.cd
,s
, which swaps two most recent directories on top of dirstack,git clone https://github.com/martinrotter/powerless.git powerless
..zshrc
:# NOTE THAT these two scripts must be called with parameters.
source /path/to/powerless/powerless.zsh false # Script with prompt, disable hardcoded colors.
source /path/to/powerless/utilities.zsh true # Optional scripts (see above), enable dirstack tweaks.