Operating System - HP-UX
1834008 Members
1907 Online
110063 Solutions
New Discussion

Re: Current path shown next to cursor - want it to stop!

 
SOLVED
Go to solution
Simon R Wootton
Regular Advisor

Current path shown next to cursor - want it to stop!

I have an L class server running HPUX 11.00. Currently, the present working directory is shown next to the cursor which is becoming annoying - how do I turn this off ? eg.

l2000:/etc#

I also get unusual chars appearing randomly, especially when logging on.

Please help!
6 REPLIES 6
Rita C Workman
Honored Contributor

Re: Current path shown next to cursor - want it to stop!

You can edit the .profile and correct the entry for PS1 as you would like it to read....

Regards,
Rita
Joseph C. Denman
Honored Contributor
Solution

Re: Current path shown next to cursor - want it to stop!

This is the PS1 variable. Find were it is being set. Will be either /etc/profile or your .profile.

To change it for now:

export PS1="#"

...jcd...
If I had only read the instructions first??
James R. Ferguson
Acclaimed Contributor

Re: Current path shown next to cursor - want it to stop!

Hi:

It sounds like your TERM variable isn't set correctly. If all is OK when you login but later becomes corrupt, do this:

# ttytype -s
# stty sane

...JRF...
Robin Wakefield
Honored Contributor

Re: Current path shown next to cursor - want it to stop!

The PS1 variable is probably being set in your .profile (or .vueprofile or .dtprofile ) within your home directory.

If it's happening for everyone, it could be in /etc/profile

Rgds, Robin.
Magdi KAMAL
Respected Contributor

Re: Current path shown next to cursor - want it to stop!

Hi,

Check the variable PS1 in /etc/profile and /$HOME/.profile and correct it if needed.

and control your TERM variable to be set to the adequate value :

#ttytype -s
...
... output
#stty sane



Magdi
Tracey
Trusted Contributor

Re: Current path shown next to cursor - want it to stop!

The profile is where I have it set initially, but I also have it in my ENV file - /etc/kshrc or $HOME/.kshrc - it is set in the /etc/profile - to change the path everytime I do a cd.