Skip to content

Instantly share code, notes, and snippets.

Project Name: OpenJS Foundation

Project Entity: OpenJS Foundation

Individual Contributor License Agreement (“Agreement”) v2.0

Thank you for your interest in the project specified above (the “Project”). In order to clarify the intellectual property license granted with Contributions from any person or entity, the Project must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection

# Add git branch to bash prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]\[\033[01;33m\]$(parse_git_branch)\[\033[00m\]:\[\033[01;36m\]\w\[\033[00m\]\$ '