Commit e4a5202d authored by Bruno Pinto's avatar Bruno Pinto

Merge pull request #247 from Fryie/ruby_version_bira

parents 699e221a aee49875
......@@ -3,10 +3,9 @@
Theme imported from Oh my ZSH: https://github.com/robbyrussell/oh-my-zsh/blob/master/themes/bira.zsh-theme
Contains traces of nuts and code from other Oh my fish themes.
Display username, hostname, current path and git status. Display the latest error status in the right prompt.
Display username, hostname, current path, ruby version and git status. Display the latest error status in the right prompt.
![bira theme](https://raw.github.com/vincent-psarga/oh-my-fish/master/themes/bira/screenshot.png)
![bira theme](https://cloud.githubusercontent.com/assets/1214238/5441541/8bd494dc-8491-11e4-9dbe-256b7e558eac.png)
TODO:
- display Ruby version
- display Python version
......@@ -37,10 +37,23 @@ function __git_status
end
end
function __ruby_version
if type "rvm-prompt" > /dev/null
set ruby_version (rvm-prompt i v g)
else if type "rbenv" > /dev/null
set ruby_version (rbenv version-name)
else
set ruby_version "system"
end
echo -n (set_color red) ‹$ruby_version› (set_color normal)
end
function fish_prompt
echo -n (set_color white)"╭─"(set_color normal)
__user_host
__current_path
__ruby_version
__git_status
echo -e ''
echo (set_color white)"╰─"(set_color --bold white)"\$ "(set_color normal)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment