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

Re: Tips



Birger Langkjer wrote:
> 
> En fre 10 mar 2000 16:25:53 skrev Kevin Forge:
> > George Russell wrote:
> > >
> > > where am i?
> > > pwd
> >
> > I woldn't forgive Indy for not seting
> >    PS1="[\u@\h \w]\\$ "
> > rather than
> >    PS1="[\u@\h \W]\\$ "
> > so where am I wold be anwered by looking at the prompt.
> > just like in DOS.
> >
> > > Quit vi with "Escape : q !"
> > > Quit Emacs with "Ctrl-X,Ctrl-S"
> >
> > Just in case they are told by some "helpfull" hacker to
> > use one of those "text editors" :)
> >
> > > ls -l
> > > ls -s (useful ls switches)
> > > ls --color
> >
> > "ls --color" should be default in Indy also.
> >
> 
> If you set
> 
> eval `dircolors /etc/DIR_COLORS`
> 
> you also get different colours for file extensions, like .gz, .zip, etc. You
> can easily add more extensions like .png, .pdf, .ps, just read /etx/DIR_COLORS.
> Those accents are `grave accents` btw., no other will do for some bizarre
> reason. That confused me for a long time.
> 
> ls -F will also append an indicator (one of */=@|) to special files (dir, link,
> exec etc.). My default alias is 'ls -F --color=auto'.
> 

LS_COLORS='no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;
33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;
32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.tar=01;
31:*.tgz=01;31:*.tbz2=01;31:*.arc=01;31:*.arj=01;

That's from running "set" on Mandrake.  They do some UI things
correctly.
Who is working on our /etc and /etc/skel tweaking ?  Look through
mandrake
( I'll send you my "/etc" dir if you want to look at what they do.

Donovan ?