Created
August 9, 2016 16:44
-
-
Save CobyR/226d01034cd9f5c1535166fe0cc1daa6 to your computer and use it in GitHub Desktop.
My OS X prompt
This file contains 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
# set prompt | |
export PS1=`ruby ~/bin/master-prompt.rb` |
This file contains 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
require 'rubygems' | |
require 'geek_painter' | |
master_piece = GeekPainter.paint do | |
label "# \\t ".in(:white) | |
#label "[".in(:brown) | |
#label "\\u".in :light_gray | |
#label "@".in :yellow | |
#label "\\h".in :light_gray | |
#label "]".in(:brown) | |
label "($(rbenv version-name))".in :red | |
label " [$(echo $HEROKU_CLOUD)]".in :blue | |
label " \\w".in :default | |
label "$(__git_ps1)".in :yellow | |
label "\\$ ".in :default | |
end | |
puts master_piece.prompt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment