Command line tcsh

I have FreeBSD 6.4.

Try to configurate tcsh.

PWD=root. Write string in file .cshrc:
<set prompt="{`pwd`:!} ">

After reboot appears command line <{root:100}>
Enter command<cd cdrom> but command line does not changes at
<{root/cdrom:1xx}>.
 
Yes.That that is necessary.

But what mistake in my example ?

ex:<set prompt="{`pwd`:!} ">
 
`pwd` is evaluated once, when the shell starts and read its configuration.
That's why it is always /root for root or /usr/home/$USER for the other users.
 
Here's my relevant bit from ~/.cshrc:

Code:
switch($TERM)
	case "xterm*":
		setenv TITLE "%{\033]0;%n@%m:%~\007%}"
		breaksw
	default:
		setenv TITLE ""
		breaksw
endsw

set prompt = "${TITLE}%n@%m:%~%#"

You don't have to use that ${TITLE} bit. It sets the xterm title bar (or putty) to username@hostname:path.
 
Back
Top