mirror of
https://github.com/fish-shell/fish-shell
synced 2024-09-21 06:51:58 +00:00
27 lines
523 B
ReStructuredText
27 lines
523 B
ReStructuredText
|
.. _cmd-prompt_login:
|
||
|
|
||
|
prompt_login - describe the login suitable for prompt
|
||
|
=====================================================
|
||
|
|
||
|
Synopsis
|
||
|
--------
|
||
|
|
||
|
::
|
||
|
|
||
|
function fish_prompt
|
||
|
echo -n (prompt_login) (prompt_pwd) '$ '
|
||
|
end
|
||
|
|
||
|
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 is supported).
|
||
|
|
||
|
Examples
|
||
|
--------
|
||
|
|
||
|
::
|
||
|
|
||
|
>_ prompt_login
|
||
|
root@bananablaster
|