Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change SCO UNIX Prompt

Status
Not open for further replies.

grsgrs

IS-IT--Management
Sep 3, 2002
5
0
0
US
Hi

how can change the prompt in SCO Unix to display the current directory.

example /usr/bin #
now i have just a #


Thank you
 
Hi:

It really depends on what shell you are using. If you are using Korn,you need to set the PS1 variable somewhere in your login process, /etc/profile, .profile, etc. This example should work:

export PS1='$PWD'":> ";

I don't believe the bourne shell supports this kind of thing.

Regards,

Ed


 
Hi

The problem is that only works if i type manuly first
ksh
and than
the script it works
if i put it in /etc/profile it dosnt work

Thank You


 
Hi:

If you are having to execute ksh, it sounds like your default shell is something other than ksh, probably bourne, sh.

Normally, environmental var SHELL contains your shell:

echo $SHELL

Also, check your user entry in /usr/passwd. The last field should have your shell ...username:/bin/sh

If your sys admin is agreeable, have him or her change it to /bin/ksh

or whatever is the location of your ksh.

Before doing this I'd be sure I want to continue working under ksh instead of sh. You shouldn't have any problems.

Regards,

Ed


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top