Skip to content

Instantly share code, notes, and snippets.

@vagnerzampieri
Last active August 29, 2015 14:04
Show Gist options
  • Save vagnerzampieri/01afcd7b5a6bf6822c6c to your computer and use it in GitHub Desktop.
Save vagnerzampieri/01afcd7b5a6bf6822c6c to your computer and use it in GitHub Desktop.
Bash from Dockerfile
export PS1='\[\e[01;30m\]\t `if [ $? = 0 ]; then echo "\[\e[32m\]✔"; else echo "\[\e[31m\]✘"; fi` \[\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\$ '
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"
tmux -2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment