LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   ZSH Highlighting (https://www.linuxquestions.org/questions/linux-general-1/zsh-highlighting-151516/)

chrisk5527 02-28-2004 07:44 AM

ZSH Highlighting
 
Does anyone know how I could highlight directories, executable files, etc in a terminal with ZSH? When I type "ls" I was the files to be highlighted.

meldar 02-28-2004 08:20 AM

Code:

alias ls="ls --color"
This should do it, you have to type it every session. The solution is to add the line to your ~/.zshrc file.

Creak 02-28-2004 09:23 AM

Maybe try this one...
Code:

eval `dircolors`
alias ls="ls -h --color=auto"

You'll have colors for more file types

(the h is for a human readable output : Ko, Mo, Go etc...)

Creak


All times are GMT -5. The time now is 11:08 PM.