Ha szeretnénk, hogy a bash színezze ki a mappákat / fájlokat amikor a terminálban dolgozunk, akkor az alábbi sorokat kell a .bashrc-ben elhelyezni.

Szerkesszük meg a .bashrc-t, mely a saját home mappánkban található.

nano ~/.bashrc

Illesszük be az alábbi scriptet:

# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
    test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
    alias ls='ls --color=auto'
    #alias dir='dir --color=auto'
    #alias vdir='vdir --color=auto'

    alias grep='grep --color=auto'
    alias fgrep='fgrep --color=auto'
    alias egrep='egrep --color=auto'
fi
Megosztás

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *