Setting prompt not trivial
Posted May 21, 2005 0:52 UTC (Sat) by liljencrantz
In reply to: Setting prompt not trivial
Parent article: Fish - The friendly interactive shell
Oops. That is an error in the documentation. The thing is that some characters have to be escaped with backslashes in the documentation, but I've obviously escaped too many characters. Simply a case of bad proofreading of the documentation.
This should work:
set FISH_PROMPT "whoami; echo '@'; hostname |cut -d . -f 1; echo '> '"
I will fix this in the manual. The pipeline in hostname is for computers that have long hostnames like 'gacrux.nada.kth.se'.
I am also planning on supporting multiline editing and smart line usage, so that when the cursor reaches the end of the line, the entire row is shifted to the left and the beginning of the line is removed.
to post comments)