Skip to content

Instantly share code, notes, and snippets.

@vagnerzampieri
Last active October 7, 2015 03:07
Show Gist options
  • Save vagnerzampieri/3094935 to your computer and use it in GitHub Desktop.
Save vagnerzampieri/3094935 to your computer and use it in GitHub Desktop.
Prompt com saída melhorada
export PS1='\[\e[01;30m\]\t `if [ $? = 0 ]; then echo "\[\e[32m\]✔"; else echo "\[\e[31m\]✘"; fi` \[\e[0;35m\]`~/.rvm/bin/rvm-prompt` \[\e[00;37m\]\u@\h\[\e[01;37m\] : `[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "\[\e[31m\]" || echo "\[\e[32m\]"`$(__git_ps1 "(%s)\[\e[00m\]")\[\e[01;34m\]\w\[\e[00m\] \n\$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment