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