PROMPT\_LOGIN(1) fish-shell PROMPT\_LOGIN(1)

# [NAME](#NAME)

prompt\_login - describe the login suitable for prompt

# [SYNOPSIS](#SYNOPSIS)

```
prompt_login
```

# [DESCRIPTION](#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](#EXAMPLES)

```
function fish_prompt


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

```
>_ prompt_login
root@bananablaster
```

# [Copyright](#Copyright)

fish-shell developers

September 9, 2026 4.9

---

Document: prompt_login(1) from fish 4.9.3-r0 (Chainguard OS)
Source: https://github.com/fish-shell/fish-shell
