Skip to content

Instantly share code, notes, and snippets.

@sebastiandeutsch
Created September 24, 2012 15:20
Show Gist options
  • Save sebastiandeutsch/3776492 to your computer and use it in GitHub Desktop.
Save sebastiandeutsch/3776492 to your computer and use it in GitHub Desktop.
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