fish-shell/share/tools/web_config
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
..
js Rework color editing in fish_config. Bury customization mode a bit: 2014-02-24 01:56:02 -08:00
partials Rework color editing in fish_config. Bury customization mode a bit: 2014-02-24 01:56:02 -08:00
sample_prompts Prompt sample: Debian chroot environment 2014-05-03 12:28:38 -07:00
delete.png Implemented history deletion from fish_config 2012-07-27 00:31:00 -07:00
fishconfig.css Rework color editing in fish_config. Bury customization mode a bit: 2014-02-24 01:56:02 -08:00
index.html Rework color editing in fish_config. Bury customization mode a bit: 2014-02-24 01:56:02 -08:00
webconfig.py fish_config: Listen on both IPv6 and IPv4. 2014-03-31 10:06:46 -07:00