Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Dateien, Verzeichnise in Farbe ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
_desta_
Tux's lil' helper
Tux's lil' helper


Joined: 22 Feb 2003
Posts: 114

PostPosted: Wed Aug 13, 2003 1:32 pm    Post subject: Dateien, Verzeichnise in Farbe ? Reply with quote

Hallo Leute !

Wie schaffe ich es das ich wenn ich (ohne grafischer Oberfläche) in der Konsole bin das ich die Verzeichenise, Dateinamen in Farbe sehe ???

Thx :oops:
Back to top
View user's profile Send private message
kopfarzt
Apprentice
Apprentice


Joined: 05 Apr 2003
Posts: 170
Location: Vienna, Austria

PostPosted: Wed Aug 13, 2003 1:44 pm    Post subject: Reply with quote

In der Console sollten die Farben genauso funktionieren wie unter X. Falls Du keine siehst, dann probier mal
Code:
ls --color


Falls das klappt, kannst Du Dir mit
Code:
alias ls="ls --color"
ein Alias dafür anlegen.

Üblicherweise funktioniert das aber unter Gentoo out-of-the-box soweit ich mich erinnere. Hast Du vielleicht beim Anlegen Deines Users nicht die Dateien aus /etc/skel in Dein Home Verzeichnis kopiert?

kopfarzt
Back to top
View user's profile Send private message
mec
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2003
Posts: 147
Location: Munich

PostPosted: Wed Aug 13, 2003 1:52 pm    Post subject: Reply with quote

Trag mal in Deine .bashrc || profile folgende Zeile ein. Die Farben kannst Du über die Zahlen varieren....

export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'

cu
michi
_________________
IBM T43 Centrino 2GHz - Shuttle-X P4
-------------------------------------------
LinuxUser #321097
-------------------------------------------
Back to top
View user's profile Send private message
_desta_
Tux's lil' helper
Tux's lil' helper


Joined: 22 Feb 2003
Posts: 114

PostPosted: Wed Aug 13, 2003 1:57 pm    Post subject: Reply with quote

genau....

habe jetzt das skelverzeichnis in das /root-Verzeichnis kopiert und jetzt funktioniert das alles...


thx...
Back to top
View user's profile Send private message
beejay
Retired Dev
Retired Dev


Joined: 03 Oct 2002
Posts: 924
Location: Flensungen (das liegt neben Merlau)

PostPosted: Thu Aug 14, 2003 7:07 am    Post subject: Reply with quote

kopfarzt wrote:
In der Console sollten die Farben genauso funktionieren wie unter X. Falls Du keine siehst, dann probier mal
Code:
ls --color


Falls das klappt, kannst Du Dir mit
Code:
alias ls="ls --color"
ein Alias dafür anlegen.

Üblicherweise funktioniert das aber unter Gentoo out-of-the-box soweit ich mich erinnere. Hast Du vielleicht beim Anlegen Deines Users nicht die Dateien aus /etc/skel in Dein Home Verzeichnis kopiert?

kopfarzt


I ch würde das ganze noch Verfeinern:
Code:
ls --color=auto

Vielleicht meldet man sich irgendwann mal von einem Terminal ohne Farbe an ;)
_________________
Dort wo schwarzer Rauch aufsteigt, sich alsbald ein Fehler zeigt.
www.paludis-sucks.org | www.gentoo.de | www.gentoo-ev.org | www.gentoo.org
Back to top
View user's profile Send private message
el*Loco
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2003
Posts: 91
Location: Cologne, Germany

PostPosted: Thu Aug 14, 2003 8:19 am    Post subject: Reply with quote

_desta_ wrote:
genau....
habe jetzt das skelverzeichnis in das /root-Verzeichnis kopiert und jetzt funktioniert das alles...

Ich hoffe aber mal stark, daß du nicht ausschliesslich als root arbeitest ... ;)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum