Package: bash
Version: 3.2-4
Severity: minor

It is nice if users can put a ~/.dircolors file in their home directory
and have it just work.

The attached patch to /etc/skel/.bashrc does exactly that, and is based
on code recently added to the coreutils manual:

http://lists.gnu.org/archive/html/bug-coreutils/2008-07/msg00136.html

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bash depends on:
ii  base-files                4.0.5          Debian base system miscellaneous f
ii  debianutils               2.30           Miscellaneous utilities specific t
ii  libc6                     2.7-16         GNU C Library: Shared libraries
ii  libncurses5               5.6+20080830-1 shared libraries for terminal hand

Versions of packages bash recommends:
ii  bash-completion               20080705   programmable completion for the ba

Versions of packages bash suggests:
pn  bash-doc                      <none>     (no description available)

-- no debconf information
--- /etc/skel/.bashrc   2008-05-12 20:02:41.000000000 +0100
+++ bashrc      2008-11-19 12:18:47.000000000 +0000
@@ -76,6 +76,8 @@
 
 # enable color support of ls and also add handy aliases
 if [ -x /usr/bin/dircolors ]; then
+    debian_dircolors=.dircolors
+    test -r $debian_dircolors && eval "$(dircolors -b $debian_dircolors)" || 
eval "$(dircolors -b)"
     eval "`dircolors -b`"
     alias ls='ls --color=auto'
     #alias dir='dir --color=auto'

Reply via email to