Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 1997 13:14:52 -0500
From:      Paul Root <proot@horton.iaces.com>
To:        Tom Bartol <bartol@salk.edu>
Cc:        Mariusz Potocki <potok@friko.onet.pl>, Justin Muir <jkuir@uniserve.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: lean mean kernel with sound!! + dumb questions
Message-ID:  <3445081C.7861E5EA@iaces.com>
References:  <Pine.BSF.3.95.971015095335.4443D-100000@dale.salk.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Tom Bartol wrote:
> 
> >
> > At 03:49 PM 10/15/97 +0200, Mariusz Potocki wrote:
> 
> > >>ps- how do I distinguish between types files etc since I can't seem to
> > >>find extensions?
> 
> The file command is useful, as you have already been told, but I prefer to
> use csh and especially tcsh (you'll have to install tcsh as a port or
> package) as my shell because I can easily alias the ls command as follows:
> 
> alias ls ls -F

for sh, ksh and bash.

alias lf="ls -CF"

> 
> To set your prompt in csh you can put the following in your .cshrc:
> 
> if ( $?prompt ) then
>         alias cd 'cd \!*;s_prompt'
>         alias s_prompt 'set prompt = "`hostname` [$cwd] -> "'
>         s_prompt
> endif
> 
> or more conveniently if you are using tcsh:
> 
> if ($shell != /bin/csh) then
>        set prompt = "%m [%/] -%# "
> endif

And for bash:
export PS1="\m [\w] \?# "

is the same thing.

 
> Hope this doesn't confuse you even more :-)
> 
> Tom



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3445081C.7861E5EA>