OS Manuals

prompt_login(1)

prompt_login - describe the login suitable for prompt

PROMPT_LOGIN(1) fish-shell PROMPT_LOGIN(1)

prompt_login - describe the login suitable for prompt

prompt_login

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).

function fish_prompt

echo -n (prompt_login) (prompt_pwd) '$ ' end


>_ prompt_login
root@bananablaster


fish-shell developers

October 12, 2026 4.9

fish 4.9.3-r2 · os · ingested 2026-10-13