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.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds