![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems . |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Expired password doesn't prompt for change | mark24p | SUN Solaris | 2 | 04-28-2008 01:15 PM |
| How to change prompt | drogram | UNIX for Dummies Questions & Answers | 4 | 04-28-2008 08:48 AM |
| How can I change the behavior of the mouse in Terminal? | TheChemist | UNIX for Dummies Questions & Answers | 0 | 03-03-2008 01:06 PM |
| Change Terminal Title | here2learn | SUN Solaris | 8 | 11-21-2005 07:39 AM |
| script to change shell and prompt | SHYAM | Shell Programming and Scripting | 1 | 06-27-2004 05:46 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to change the system prompt and BG of terminal?
Hi all,
I was wondering how to change the PS1 to my liking? I tried changing it using PS1='my choice' it worked but the subsequent terminals i open will not have it as the default PS1 ,how do i change it? also i am running as super user, and i need to exec bash, to get the bash environment... So whenever i exec bash, i get the "bash3.2#" system prompt.... How to change it permanently? Other question is how to change the BG color of the terminal?is there a pkg available that does it or can it be done out of the box? Again i want this to be permanent so that every time i open terminal i should get the changed BG and not the default one? PS: am using solaris B-79a Thanks |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
Set it in your .profile.
Quote:
Quote:
|
|
#3
|
|||
|
|||
|
I was unable to open /usr/bin/bash...
I mean it was in unreadable format!!!. and i was not able to figure out where to enter the PS to change to my liking in the .profile (i suppose you meant /etc/profile)(using bash) So i tried this from the terminal... export PS1='wrapster@home' it works but again its gone when i do exit... and i will have to reset it to get it back... (i want it to be displayed it as soon as the terminal is open, say something like a default)) Also its not reflected across terminals do i have to keep doing export every time?? Also can you be a little descriptive as to where exactly i need to set the values in /etc/profile? |
|
#4
|
|||
|
|||
|
Hi, You can try this one. Edit your /etc/profile. Then put the lines below. PS1=`hostname`:'$LOGNAME[$PWD]' export PS1 Best regards, sodapop |
|
#5
|
|||
|
|||
|
Quote:
What you need is: Code:
usermod -s /usr/bin/bash wrapster usermod -s /usr/bin/bash root Quote:
Quote:
|
|||
| Google The UNIX and Linux Forums |