Hi fish-users, I am considering switching to the fish shell, primarily for interactive use.
I like each prompt to be proceeded by a blank line, as a visual separation cue. Fish does not support multi-line prompts, so I thought maybe I could use the fish_prompt event to echo a blank line, like this: function -e fish_prompt fish_prompt_handler echo end Unfortunately, the above only works for the first prompt of each shell. It does not work for each "new fish prompt". (Evidently, the docs and I ascribe different meanings to the phrase "whenever a new fish prompt is about to be displayed".) Then I thought, maybe I could echo a blank line every time the status variable changes. This would not cover every prompt, but it might cover 90% of them. function -v status status_handler echo end Unfortunately, this does not work at all. I currently use bash. Bash makes echoing blank lines before each prompt very easy. I also have bash set up to echo, in red, the exit status of any process that exits with a status other than zero. In the future I may also conditionally print additional status information before prompt. In bash, doing this is straightforward via the PROMPT_COMMAND variable. Is there any way to achieve similar results with fish? Thanks! -mpb ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
