Subject: Re: Newlines
To: Jeremy C. Reed <reed@reedmedia.net>
From: Randy Beaudreault <maccult@pacbell.net>
List: netbsd-help
Date: 10/19/2001 20:35:01
>  > >Put in a real line:
>>  >
>>  >%  set prompt = "-- $cwd -- \
>>  >  {\!} "
>>  >-- /home/reed --
>>  >  {11}
>>
>>  Didn't work.  Any other recommendations?
>
>What happened? Show your .cshrc.

Gave me an error about missing closing quote

>Are you using csh?

yes

>My .cshrc has:
>
>set prompt = "-- $cwd -- \
>  {\!} "
>
>It works for me. I am not using your "${mch:q}:" part.
>
>(Also, you may want to use it in .login instead.)
>
>    Jeremy C. Reed
>    http://www.reedmedia.net/

My original .cshrc:

#       $NetBSD: dot.cshrc,v 1.1.2.1 2000/10/20 17:00:53 tv Exp $
#csh .cshrc file

alias h         history 25
alias j         jobs -l
alias la        ls -a
alias lf        ls -FA
alias ll        ls -lA
alias su        su -m
alias net-      adsl-stop


setenv  EDITOR  vi
setenv  VISUAL  ${EDITOR}
setenv  EXINIT  'set autoindent'
setenv  PAGER   more
setenv  PKG_PATH 
'ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5.1/m68k/All
'

set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,pkg/{,s}bin,games} \
             /usr/local/{,s}bin)
A

if ($?prompt) then
         # An interactive shell -- set some stuff up
         set filec
         set history = 1000
         set ignoreeof
         set mail = (/var/mail/$USER)
         set mch = `hostname -s`
         set prompt = "${mch:q}: {\!} "
         umask 22
endif

My trial .cshrc:

#       $NetBSD: dot.cshrc,v 1.1.2.1 2000/10/20 17:00:53 tv Exp $
#csh .cshrc file

alias h         history 25
alias j         jobs -l
alias la        ls -a
alias lf        ls -FA
alias ll        ls -lA
alias su        su -m
alias net-      adsl-stop

set mch = `hostname -s`
alias setprompt 'set prompt = "-- $cwd --${mch:q}: {\!} "'

setenv  EDITOR  vi
setenv  VISUAL  ${EDITOR}
setenv  EXINIT  'set autoindent'
setenv  PAGER   more
setenv  PKG_PATH 
'ftp://ftp.netbsd.org/pub/NetBSD/packages/1.5.1/m68k/All
'

set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,pkg/{,s}bin,games} \
             /usr/local/{,s}bin)

if ($?prompt) then
         # An interactive shell -- set some stuff up
         set filec
         set history = 1000
         set ignoreeof
         set mail = (/var/mail/$USER)
         setprompt
         umask 22
endif
-- 
Randy Beaudreault

"Spam in a can" - a description of the first astronauts

"Love is like solving the perfect murder.  It's good to be good,
but better to be lucky" - Det. Frank Pembleton
 From the show, "Homicide: Life On The Street"