[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CLI bunter machen



On Mon, 24 Sep 2007 the mental interface of
Florian Lindner told:

> Hallo,
> ich habe gerade Debian etch frisch mit debootstrap installiert. Zugegriffen 
> wird auf das System ausschließlich mit ssh, als Shell wird bash benutzt.
> Kann ich die Kommandozeilenausgabe irgendwie bunter machen? Also ls markiert 
> unterschiedliche Dateien mit Farben, die Ausgabe von aptitude wird einfacher 
> lesbar und so weiter... 
> Ich will nicht wissen, wie ich das im Detail konfigurieren kann, sondern ob es 
> ein Paket gibt was nur noch installiert wird oder eine Einstellung die noch 
> gesetzt wird, so das es so wird.

Als Appetitanreger tu mal folgendes in die .bashrc:

if [ "$PS1" ]; then

    # enable color support of ls and also add handy aliases

    eval `dircolors -b`
    alias ls='ls --color=auto'
    alias ll='ls -al'
    alias la='ls -A'
    alias l='ls -CF'
    #alias dir='ls --color=auto --format=vertical'
    #alias vdir='ls --color=auto --format=long'

    # set a fancy prompt

    #PS1='\u@\h:\w\$ '
    PS1='\e[36m\u\e[35m@\e[34m\e[33m\h\e[32m>\l\e[33m: \e[34m\w \e[35m$ \e[0m'
    #PS1='\e[31;42m\u@\h\e[0m\e[32m>\l: \w $ \e[0m'
    #PS1="\[\033[31m\]\u@\h\[\033[36m\]>\l \w \$\[\033[39;22;0m\] "
fi

oder nimm doch gleich die zShell ;)


Elimar

-- 
  You cannot propel yourself forward by
  patting yourself on the back.



Reply to: