On my NAS box running Ubuntu 11.04 I'm experiencing an odd issue with dircolors inside byobu. Per the image below, everything works fine outside byobu. The prompt (zsh), vim, and everything else works fine... it's just dircolors that don't appear to be working correctly. One additional note, in Putty on Windows and iTerm2 on OS X I'm using the Solarized color theme.
Steps I've taken to fix, inside byobu:
alake@foxery:~/askubuntu » dircolors -p > ~/.dircolors
alake@foxery:~/askubuntu » echo $TERM >> ~/.dircolors
### Restarted ssh session here
alake@foxery:~/askubuntu » alias ls
ls='ls --color=tty'
alake@foxery:~/askubuntu » echo $TERM && grep $TERM ~/.dircolors
screen-256color-bce
TERM screen-256color-bce
alake@foxery:~/askubuntu » dpkg -la | grep -i byobu
ii byobu 3.33-0ubuntu1.1 a set of useful profiles and a profile-switcher for GNU screen
iTerm:
Putty:
- Overriding the alias with ls --color=auto
doesn't work.
--color=tty
? valid values are never, always and auto according to the manpagels --color=auto
and see if that helps?ls.c
seems to have backwards compatibility support to map between those. So tty is actually equivalent to auto.