Created
February 10, 2015 16:58
-
-
Save rafaelcgo/54a13a48a7b0944cf0cb to your computer and use it in GitHub Desktop.
.bashrc Formatting PS1 with RVM and Date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FORMATACAO FOLDER \W FORMATACAO | |
export PS1="\[\e[1m\]\W\[\e[0m\] \$ " | |
# adding RVM ruby information | |
# FORMATACAO RVM FORMATACAO | |
export PS1="[\[\e[31;1m\]\$(~/.rvm/bin/rvm-prompt i v p g)\[\e[0m\]]\[\e[0m\]:$PS1" | |
# adding Timestamp | |
# DIA DA SEMANA \D HORARIO \t | |
export PS1="[\[\e[31;1m\]\D{%d}\[\e[0m\]]\[\e[0m\][\[\e[31;1m\]\t\[\e[0m\]]\[\e[0m\]$PS1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment