Re: Farbe bei ls (in xterm)

From: Patrick Hess <patrick-hess(at)freenet.de>
Date: Thu, 22 Jan 2004 20:23:40 +0100

Hallo,

Marian Hettwer schrieb:
> jerik(at)gmx.net wrote:
> > Am 21.1.2004 schrieb "Marian Hettwer" <MH(at)kernel32.de>:
> >>Meine .bash_profile sieht folgendermaßen aus:

Was ist die .bash_profile?

        desk9:~ » head -n 4 .bashrc
        # Bash knows 3 diferent shells: normal shell, interactive shell,
        # login shell. ~/.bashrc is read for interactive shells and
        # ~/.profile is read for login shells. We just let ~/.profile also
        # read ~/.bashrc and put everything in ~/.bashrc.

> > shell$ . ~/.bash_profile
> Um das tun zu dürfen musste ich meiner .bash_profile erstmal ein
> execute bit setzen

Nein.

Also ich habe hier wunderbar Farbe seit 4.5-Release mit folgenden
Einstellungen:

Zunächst in ~/.profile:

        . /etc/profile
        . ~/.bashrc

Anschließend in /etc/profile oder alternativ in ~/.bashrc:

        alias ls="ls -G"

Hiernach sollte schon einmal der Alias eingelesen werden.

Nun noch die richtige $TERM: Bei mir steht sie auf "xterm-color".
Traditionell ist "xterm" nicht farbfähig, was aber anscheinend mit
5.x geändert wurde, wenn ich eine andere Mail in diesem Thread
richtig interpretiere. Auf der "sicheren Seite" ist man aber auf
jeden Fall mit "xterm-color".

Mit diesen Einstellungen sollte man ziemlich sicher einen farbigen
ls-Output bekommen.

Gruß,
Patrick

-- 
Scanner unter FreeBSD:   
http://phess.de.vu/FreeBSD-Scanner/FreeBSD-Scanner.html
To Unsubscribe: send mail to majordomo.FreeBSD.org
with "unsubscribe de-bsd-questions" in the body of the message
Received on Thu 22 Jan 2004 - 20:27:57 CET

search this site