User: Password:
Subscribe / Log in / New account

Setting prompt not trivial

Setting prompt not trivial

Posted May 21, 2005 0:52 UTC (Sat) by liljencrantz (guest, #28458)
In reply to: Setting prompt not trivial by diehl
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 ''.

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.

(Log in to post comments)

Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds