-
Mac OS X or Linux. prompt.bash is mainly developed for Mac OS X but it works smoothly under Linux too.
-
Python 2.7+
-
A terminal emulator with support for ANSI colors. Most terminal emulators works out of the box, in particular:
- Terminal, the default terminal emulator in Mac OS X;
- iTerm2, the app for Mac OS X;
- GNOME Terminal, the default terminal emulator in Ubuntu.
For others, like Konsole the default terminal emulator for KDE, the right
TERM
type might be required in order to activate colors. If this is the case, check theTERM
type withecho $TERM
and if the output differs fromxterm-256color
, then add the following line to~/.bashrc
:export TERM='xterm-256color'
-
pygit2
for better native python git support (on OSX you can use Homebrew to install the requiredlibgit2
) -
Patched fonts for better-looking glyphs. Install patched powerline-fonts and set the terminal to use them. My favorite is DejaVu Sans Mono for Powerline.
-
Clone this repository:
git clone https://github.com/jsjohnst/prompt.bash.git
-
Run:
./install.py
-
Optional - Edit the file
prompt.py
, in particular:- set
CURRENT_THEME
to your favorite theme or create a new one copying one of the existent themes;
- set
-
Logout and login again in the shell to see the new prompt!