Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Konsoleneinstellngen
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
Sri. Vival
n00b
n00b


Joined: 06 Feb 2004
Posts: 1

PostPosted: Fri Feb 06, 2004 9:54 am    Post subject: Konsoleneinstellngen Reply with quote

Moin Moin,
ich nutze gentoo eigentlich primär für den serverbereich. Ist es eigentlich möglich die konsolenfarben also rechnername dir # bzw wenn superuser nicht akitiv in grün. Ihr wisst sicherlich was ich meine. Also kann mir einer sagen wie ich das zb auf suse oder redhat exportiere?
Back to top
View user's profile Send private message
MrTom
l33t
l33t


Joined: 20 Jan 2003
Posts: 608

PostPosted: Fri Feb 06, 2004 12:24 pm    Post subject: Reply with quote

Schau Dir mal "/etc/profile" an.
Code:
if [ `/usr/bin/whoami` = 'root' ]
then
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]'
        fi
        export PATH="/bin:/sbin:/usr/bin:/usr/sbin:${ROOTPATH}"
else
        # Do not set PS1 for dumb terminals
        if [ "$TERM" != 'dumb'  ] && [ -n "$BASH" ]
        then
                export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m
\]'
        fi
        export PATH="/bin:/usr/bin:${PATH}"
fi

Falls Dir die Farben bei ls etc nicht gefallen, findest Du in diese in "/etc/DIR_COLORS"
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