fish / 3.5.0 / cmds / prompt_login.html /

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_prompt
    echo -n (prompt_login) (prompt_pwd) '$ '
end
>_ prompt_login
root@bananablaster

© 2022 fish-shell developers
Licensed under the GNU General Public License, version 2.
https://fishshell.com/docs/3.5/cmds/prompt_login.html