Bash prompt with support for SCM distrubuted systems: GIT & Mercurial
- Support for GIT
- Support for Mercurial
- Pull and Push indicator
- New, Added, Modificated and Conflicts indicators
- Time on each command
- Return code of last command
- Full path to current working directory
- Indicate in red when running as root
- Create
.bash
directory:mkdir -p ~/.bash
cd ~/.bash
- Clone this repository:
git clone https://github.com/wavesoftware/scmprompt.git scmprompt
- Install into your Bash RC:
echo '. ~/.bash/scmprompt/scmprompt.sh' >> ~/.bashrc
mkdir -p ~/.bash
git clone https://github.com/wavesoftware/scmprompt.git ~/.bash/scmprompt
echo '. ~/.bash/scmprompt/scmprompt.sh' >> ~/.bashrc
exec bash -l
sudo git clone https://github.com/wavesoftware/scmprompt.git /usr/lib/scmprompt
sudo bash -c "echo '. /usr/lib/scmprompt/scmprompt.sh' > /etc/profile.d/scmprompt.sh"
exec bash -l
cd <scmprompt-dir>
git pull