It works for me, but of course it does need to be referenced in the
first statement in the prompt.  This is my prompt:

function fish_prompt --description 'Display the prompt'
    set -l last_status $status
    if [ $last_status -ne 0 ]
        printf '%s(%d)%s ' (set_color red --bold) $last_status
(set_color normal)
        echo
    end
    printf '%s%d %s%s@%s%s%s %s%s %s>%s ' (set_color blue)
$prompt_count (set_color red --bold) (whoami) (set_color normal)
(set_color red) (hostname) (set_color blue --bold) (prompt_pwd)
(set_color green --bold) (set_color normal)
    set -U prompt_count (expr $prompt_count + 1)
end

That bare echo is an attempt to insert a newline which has never worked.

—Tom

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to