Skip to content

Instantly share code, notes, and snippets.

View arthurulacerda's full-sized avatar
🌎

Arthur Lacerda arthurulacerda

🌎
  • Brazil - Goiânia
View GitHub Profile
parse_git_branch() { git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ \ \1/' -e 's/[[:space:]]//g'; }; export PS1='\[\e[1;36m\][\[\e[0;32m\]\u\[\e[1;37m\]@\[\e[0;90m\]\h\[\e[1;37m\]:\[\e[1;36m\]\W \[\e[1;31m\]$(parse_git_branch)\[\e[1;36m\]]▶ \[\e[0m\]'