Skip to content

Instantly share code, notes, and snippets.

View agambier's full-sized avatar

Alexandre Gambier agambier

  • IEM Group
  • Annecy, France
View GitHub Profile
@agambier
agambier / .bashrc
Created June 3, 2021 14:02
custom bash prompt with git branch displayed
# Display the git branch if current folder is a git repo.
# the small square before the branch name is the unicdeo symbo \ue0a0
#
# ┌─[user@host:folder git_branch]
# └> $
#
# Install git-prompt.sh as ~/.git-prompt.sh (https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh)
# Add the following line in your ~/.bashrc
[ -f ~/.git-prompt.sh ] && source ~/.git-prompt.sh