Home » Infrastructure » Unix » .cshrc file
.cshrc file [message #222502] Mon, 05 March 2007 03:57 Go to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Hi.
Please explain me what exactly these lines do

alias setprompt 'set prompt=`hostname`:"${cwd}>"'
setprompt # to set the initial prompt
alias cd 'chdir \!* && setprompt'

Thanks,
Shahnaz.
Re: .cshrc file [message #222562 is a reply to message #222502] Mon, 05 March 2007 07:31 Go to previous messageGo to next message
tahpush
Messages: 961
Registered: August 2006
Location: Stockholm/Sweden
Senior Member

Well i dont know what cwd is ?
Or do you mean pwd ?

Re: .cshrc file [message #222716 is a reply to message #222562] Tue, 06 March 2007 02:12 Go to previous message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
My shell is c shell, i can see the content of the variable cwd as current working directory

echo $cwd

Thanks,
Shahnaz.
Previous Topic: Korn Shell doubt.
Next Topic: how to get sqlnet.ora file??
Goto Forum:
  


Current Time: Fri Apr 19 16:56:54 CDT 2024