You can just use a single echo:

function fish_prompt
    echo (set_color purple)(date "+%m/%d/%y")(set_color FF0) (pwd) '>' 
(set_color normal)
end

or you could use echo -n:

function fish_prompt
set_color purple
echo -n (date "+%m/%d/%y")
set_color FF0
echo -n (pwd) '> '
set_color normal
end

--
Asger Hautop Drewsen

On 30 Jul 2015 at 02:44:59, @lbutlr (krem...@kreme.com) wrote:

The tutorial on prompts has this example:  

> function fish_prompt  
set_color purple  
date "+%m/%d/%y"  
set_color FF0  
echo (pwd) '>'  
set_color normal  
end  

How would I do that exact same prompt, but all on a single line?  


--  
Lead me not into temptation, I can find the way.  


------------------------------------------------------------------------------  
_______________________________________________  
Fish-users mailing list  
Fish-users@lists.sourceforge.net  
https://lists.sourceforge.net/lists/listinfo/fish-users  
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to