pwd
is a Python tool to create a perfect bash prompt!
Supported version control systems: git
- VCS: Repo and branch name
- VCS: Remote display
- VCS: Dirty flag
- VCS: Divergence tracking
- VCS: Submodule support
- VCS: Detached HEAD warning
- User+hostname if on an external system
- Python virtual environment (limited)
Clone the git repo:
git clone git@github.com:bclarkx2/pwd
Install using make
:
make install
Add the following line to your .bashrc
(or other shell configuration files):
export PROMPT_COMMAND='PS1="$(pwd.py)"
If the current username and hostname are both equal to the respective values in the MY_USERNAME
and MY_HOSTNAME
environment variables, the user@hostname
part of the prompt will be suppressed.
This project is released under the MIT license. See LICENSE.md for details.