Operating System - HP-UX
1826290 Members
4447 Online
109692 Solutions
New Discussion

How to change command line appearance.

 
SOLVED
Go to solution
Vlad_11
Frequent Advisor

How to change command line appearance.

 
beer or not beer
5 REPLIES 5
Umapathy S
Honored Contributor
Solution

Re: How to change command line appearance.

Vlad, if I understand correctly then this will do
export PS1=$LOGNAME@$(hostname):'$PWD : '

Put this in your .profile.

HTH,
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Pete Randall
Outstanding Contributor

Re: How to change command line appearance.

export PS1="`hostname`(!)`whoami`# "


Pete

Pete
Michael Schulte zur Sur
Honored Contributor

Re: How to change command line appearance.

Hi vlad,

could you give some more detail?

greetings,

Michael
Vlad_11
Frequent Advisor

Re: How to change command line appearance.

Thanks to all.
Just hit enter before completed my question.
But you got it !
Now I know how to make my command line prefix to look in the way I want.

Vlad
beer or not beer
Doug Burton
Respected Contributor

Re: How to change command line appearance.

Kinda cute... If you use DTterm then export PS1 to have a color prompt.


PS1="$(echo "\\033[40m\\033[33m")"'$LOGNAME'@$(hostname)"-$(echo "\\033[36m")"'$PWD'"$(echo "\\033[0m") : "