|
|
@ -37,10 +37,23 @@ function __git_status
|
|
|
|
end
|
|
|
|
end
|
|
|
|
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
|
|
|
|
function fish_prompt
|
|
|
|
echo -n (set_color white)"╭─"(set_color normal)
|
|
|
|
echo -n (set_color white)"╭─"(set_color normal)
|
|
|
|
__user_host
|
|
|
|
__user_host
|
|
|
|
__current_path
|
|
|
|
__current_path
|
|
|
|
|
|
|
|
__ruby_version
|
|
|
|
__git_status
|
|
|
|
__git_status
|
|
|
|
echo -e ''
|
|
|
|
echo -e ''
|
|
|
|
echo (set_color white)"╰─"(set_color --bold white)"\$ "(set_color normal)
|
|
|
|
echo (set_color white)"╰─"(set_color --bold white)"\$ "(set_color normal)
|
|
|
|