An informational command prompt for bash
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
plugins.sh
ps1.sh
screenshot.png

README.md

PS1

My custom PS1 prompt.

Includes:

  • Currently selected AWS profile
  • Git branch if in a git repo directory
  • Summary of current git status if in a git repo
  • Current python virtualenv
  • Username, hostname and current path

It's extensible and customisable. Have a look at plugins.sh

It looks like this:

screenshot

Usage

Put the following somewhere in your .bashrc

ps1_prompt="\u> "  # Or whatever you like to have on the input line
. /path/to/ps1.sh