WCM Forum

WCM Forum (http://www.wcm.at/forum/index.php)
-   Linux, UNIX, Open Source (http://www.wcm.at/forum/forumdisplay.php?f=13)
-   -   bashconfig (http://www.wcm.at/forum/showthread.php?t=64725)

S@ndy 30.07.2002 09:10

bashconfig
 
hy leute

ich arbeite im linux defaultmässig mit der bash - habe leider keine farbliche darstellung (also executable rot ordner blau usw)
ihr könnt mir sicher verraten was ich in die .bashrc eintragen muss damit ich diese farbliche darstellung wieder habe... :confused:

vielen dank
S@ndy

pong 30.07.2002 10:33

in shell tragst das mittels alias ein

alias dir='dir --color=auto'
alias ls='ls --color=auto'

bzw kannst auch ein eigens erstelltes farbprofil verwenden, nur frag mich nicht wie das funzt

S@ndy 30.07.2002 11:26

Funkt
 
super DANKE !!!

Lotussteve 30.07.2002 20:07

Hallo!

# enable color support of ls and also add handy aliases

eval `dircolors`
alias ls='ls --color=auto'
alias ll='ls -lA'
alias la='ls -lA'
alias l='ls -CF'
alias dir='ls --color=auto --format=vertical'
alias vdir='ls --color=auto --format=long'


Vorallem das eval ist wichtig, dann geht es in allen Aliasen, z.B. bei ll muss ich kein --color=auto anhängen.


HTH,

Ciao,

Steve


Alle Zeitangaben in WEZ +2. Es ist jetzt 11:51 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© 2009 FSL Verlag