Problems using Putty (FreeBSD)
Hello all,
I am using "putty" to ssh a Freebsd machine. The problem that I am facing is that once I change to bash shell from C shell and I enter recursively into many directories using cd command then every thing I type after the prompt goes onto next line and coincides with the prompt of second line. e.g. Quote:
I think what basically I want is the following: Quote:
|
The prompt is controlled by the environmental variable $PS1. (There are also $PS2, $PS3, and $PS4 for special purposes; see bash man page if interested.)
If "intel" is your hostname, then I think what you want is one of the following: Code:
PS1='\h\$' Code:
PS1='\H:\W\$' After interactively getting the prompt the way you like it, you can add that line to /etc/profile or ~/.bash_profile as appropriate on the remote machine. |
Thanks blackhole54....the workaround did the trick...........
|
All times are GMT -5. The time now is 11:42 AM. |