]> code.delx.au - dotfiles/commitdiff
Bash: Force colours on for dircolors call
authorJames Bunton <jamesbunton@delx.net.au>
Thu, 10 Apr 2008 06:33:23 +0000 (16:33 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Thu, 10 Apr 2008 06:33:23 +0000 (16:33 +1000)
.bash/colors

index 8a9d27e5ab211b2883a1baf04ebf3e4be29714c1..641143ff69e87a8be828bca8a8dc73d89adfbf59 100644 (file)
@@ -63,7 +63,7 @@ fi
 # Set the prompt colour, and the colors for the 'ls' command appropriately,
 # depending on the background of the terminal.
 if [ ${PS1_COLOR:-0} -eq 1 ]; then
-       eval $(dircolors 2> /dev/null)
+       eval $(TERM=xterm dircolors 2> /dev/null)
        PS1='${debian_chroot:+($debian_chroot)}\[\033[00;31m\]\u@\h\[\033[00m\]:\[\033[00;34m\]\w\[\033[00m\]\n\$ '
 
        if [ ${DARK} -eq 0 ]; then