fish-shell/share/tools/web_config/sample_prompts
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
..
classic_git.fish Ugly hack to move functions in sample prompts inside fish_prompt to address #736 2013-05-13 10:17:31 -07:00
classic_status.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
classic.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
debian_chroot.fish Prompt sample: Debian chroot environment 2014-05-03 12:28:38 -07:00
informative_git.fish Partially fix #1224. 2014-01-10 21:33:50 +01:00
informative.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
justadollar.fish Renamed hyperminamlist prompt 2012-09-06 01:52:21 -07:00
lonetwin.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
minimalist.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
nim.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
pythonista.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
robbyrussell.fish Slightly modified this theme to match robbyrussel 2013-05-24 23:18:24 -07:00
screen_savvy.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00
terlar.fish Use echo -n instead of printf 2012-10-20 12:52:53 -07:00
user_host_path.fish Allow setting the prompt from web_config 2012-09-06 01:30:26 -07:00