The documentation page states that `fish_title` gets executed before and after 
each command, but it never fires for me.  

I wanted to set the prompt title, so I tried placing `printf "\033]0;%s\a" 
(pwd)` into `fish_prompt` instead, which gets fish confused as to the length of 
the prompt with long paths pulled from `pwd`.  

A workaround I found is to define `~/.config/fish/functions/cd.fish` like so:

        function cd
                cd $argv
                printf "\033]0;%s\a" (pwd)
        end


fish v1.23.1
MacOS X 10.6.3 (10D573)
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to