A Powerline-like prompt for Bash, ZSH, and Fish. All of the version control systems supported by powerline shell give you a quick look into the state of your repo. The current branch is displayed and changes background color when the branch is dirty. When the local branch differs from the remote, the difference in number of commits is shown along with ⇡ or ⇣ indicating whether a git push or pull is pending. powerline-go uses ANSI color codes, these should nowadays work everywhere, but you may have to set your $TERM to xterm-256color for it to work. If you want to use the "patched" mode (which is the default and provides improved UI), you'll need to install a powerline font, either as fallback, or by patching the font you use for your terminal. Alternatively, you can use "compatible" or "flat" mode. There are a few optional arguments that can be seen by running powerline-go -help. These can be used by changing the command you have set in your shell’s init file.
Features
- Shows some important details about the git/hg branch
- Changes color if the last command exited with a failure code
- If you're too deep into a directory tree, shortens the displayed path with an ellipsis
- Shows the current Python virtualenv environment
- Shows the current Ruby version using rbenv or rvm
- Shows if you are in a nix shell
- It's easy to customize and extend. See below for details