Package: fish
Version: 2.0.0-1
Severity: normal

Dear Maintainer,

when logging in a Debian chroot environment, bash prompt shows the environment 
name,
in order to distinguish between the host shells and the chrooted ones:

# inside /etc/bash.bashrc

....

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
    debian_chroot=$(cat /etc/debian_chroot)
fi

# set a fancy prompt (non-color, overwrite the one in /etc/profile)
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '

....

I added a fish prompt sample which mimics the same behaviour; my patch will 
likely
soon be merged into the official repository:

https://github.com/fish-shell/fish-shell/pull/1351

My suggestion is to set this prompt as the default prompt in Debian, in order 
to have
the same behaviour as in bash.

I opened this ticket before my patch getting merged because I would forget 
otherwise.

Greetings

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (500, 'testing-updates'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.13-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages fish depends on:
ii  bc                 1.06.95-8
ii  libc6              2.18-4
ii  libgcc1            1:4.8.2-16
ii  libncurses5        5.9+20140118-1
ii  libstdc++6         4.8.2-16
ii  libtinfo5          5.9+20140118-1
ii  w3m [www-browser]  0.5.3-15

Versions of packages fish recommends:
ii  xsel  1.2.0-2

Versions of packages fish suggests:
pn  doc-base  <none>
pn  menu      <none>

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to