Back to Fish

prompt_login - describe the login suitable for prompt¶

docs/docs/4.4/cmds/prompt_login.html

latest642 B
Original Source

prompt_login - describe the login suitable for prompt

Synopsis

prompt\_login

Description

prompt_login is a function to describe the current login. It will show the user, the host and also whether the shell is running in a chroot (currently Debian’s debian_chroot file is supported).

Examples

function fish\_promptecho -n (prompt\_login) (prompt\_pwd) '$ 'end
\>\_ prompt\_loginroot@bananablaster