Skip to content

Instantly share code, notes, and snippets.

View ra0van's full-sized avatar
🚀
Learning

rajasekhar vanjarapu ra0van

🚀
Learning
View GitHub Profile
@electron0zero
electron0zero / .bashrc
Last active January 5, 2024 05:42 — forked from johnpbloch/.bashrc
Display the current git branch in your command prompt with username and dir., Adds an asterisk if there are unstaged updates.
# Add this to your .bashrc
# Will produce command line prompts like in git repositories
# <username>@<hostname>:<directory>(branch) $
# and like this elsewhere.
# <username>@<hostname>:<directory> $
# If there are unstaged changes in the repository, there will be an asterisk next to the branch name:
# <username>@<hostname>:<directory>(branch) $
# taken from https://gist.github.com/johnpbloch/3406013
# Trim path https://unix.stackexchange.com/a/26950/270668