mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-05 01:33:41 +08:00
4285baa6e1
When you chroot in Debian, bash shows the chroot environment in the prompt: ```bash ... if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' ... ``` This is the effect: ``` (chroot_env) user@host:~# ``` It is useful when chrooting, since usually the hostname remains the same and thus you can't distinguish where you are. |
||
---|---|---|
.. | ||
classic_git.fish | ||
classic_status.fish | ||
classic.fish | ||
debian_chroot.fish | ||
informative_git.fish | ||
informative.fish | ||
justadollar.fish | ||
lonetwin.fish | ||
minimalist.fish | ||
nim.fish | ||
pythonista.fish | ||
robbyrussell.fish | ||
screen_savvy.fish | ||
terlar.fish | ||
user_host_path.fish |