fish-shell/share/tools
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
..
web_config Prompt sample: Debian chroot environment 2014-05-03 12:28:38 -07:00
create_manpage_completions.py Prefer standard library lzma module if available 2013-11-09 19:46:42 +08:00
deroff.py Remove trailing whitespaces and change tabs to spaces 2012-11-18 11:23:22 +01:00