fish-shell/share
Maurizio De Santis 4285baa6e1 Prompt sample: Debian chroot environment
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.
2014-05-03 12:28:38 -07:00
..
completions functions on top 2014-04-19 14:50:15 -07:00
functions use mktemp(1) to generate temporary file names 2014-04-28 10:42:00 +08:00
tools Prompt sample: Debian chroot environment 2014-05-03 12:28:38 -07:00
config.fish Make fish install a command_not_found handler in non-interactive uses. 2014-02-20 10:26:57 -08:00