LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-28-2004, 07:44 AM   #1
chrisk5527
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Slackware Linux 10.0
Posts: 289

Rep: Reputation: 30
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.
 
Old 02-28-2004, 08:20 AM   #2
meldar
Member
 
Registered: Feb 2004
Location: Denmark
Distribution: Gentoo
Posts: 136

Rep: Reputation: 15
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.
 
Old 02-28-2004, 09:23 AM   #3
Creak
Member
 
Registered: Feb 2004
Distribution: debian
Posts: 187

Rep: Reputation: 30
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
zsh as root? abrouwers Slackware 7 08-13-2005 03:14 PM
Bash or Zsh reddazz Linux - General 5 05-27-2005 08:16 AM
zsh transparency Ops Linux - Software 1 07-08-2004 10:01 AM
zsh equivalents in bash saurya_s Linux - General 1 01-04-2004 03:06 AM
Zsh rch Linux - General 0 05-22-2003 03:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration