Created
September 24, 2012 15:20
-
-
Save sebastiandeutsch/3776492 to your computer and use it in GitHub Desktop.
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
function fish_prompt -d 'Write out the prompt' | |
# is there a more elegant method to extract the ruby version? | |
printf '%s%s%s ' (set_color red --bold) (rbenv version | tr " " "\n" | sed -n 1p) (set_color normal) | |
printf '%s%s%s %s$ ' (set_color $fish_color_cwd --bold) (prompt_pwd) (set_color normal --bold) (fish_prompt_scm) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment