Skip to content

Instantly share code, notes, and snippets.

View filp's full-sized avatar
🖨️
i like computer

Filipe Dobreira filp

🖨️
i like computer
  • Lisbon, Portugal
View GitHub Profile
prompt() {
last_status="$?"
color_base="\[\e[0m\]"
color_red_bold="\[\e[1;31m\]"
color_green_bold="\[\e[1;35m\]"
color_yellow_light="\[\e[0;33m\]"
git_branch=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'`
if [ $last_status -eq "0" ]
then