|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|
|||
Issue retaining PS1 setting.
Hello,
I'm extremely new to the BSD world and am having trouble with the PS1 retaining its settings after logging off and/or rebooting. I put this: PS1="\d \t [\w]#" It does change, but it doesn't stay permanent. I don't know why. What am I doing wrong to make it go back to default? Please help me retain those settings by providing the correct steps or even files to edit. Thank you all in advance for the help. Kind Regards |
|
|||
To be retained from one session to the next, this setting need to be written to ~/.profile. To do so,
$ PS1="\d \t [\w]#" $ echo $PS1 >> ~/.profile You can check to ensure that this has been saved by issuing the following command: $ cat ~/.profile The setting for PS1 should now appear at the bottom of the file. Note that ending PS1 with a '#' is not necessarily following convention. All user accounts typically have a '$' prompt. '#' is reserved to designate the root account. You can determine how you are logged into the system by issuing the following command: $ whoami If you are logged in as root, you really need to create a non-root account & use it exclusively. Logging into a system using the root account is not considered a best practice. And while you are a newbie, you will save yourself much aggravation by taking the time now to study the FAQ: http://openbsd.org/faq/index.html |
|
|||
Try it, & report back the results.
|
|
|||
My bad. You're correct in that what I provided was incomplete. What I should have specified is the following:
$ echo "PS1=$PS1" >> ~/.profile I apologize for any confusion caused. |
|
|||
Oh and...
Oh and I'm running OpenBSD on VirtualBox from Sun Microsystems.
Thanks |
|
|||
Thank you. I'll be sure to do that.
Now my next mission. Colors in the terminal! Shouldn't be too bad. Thanks again! |
|
|||
If you are referring to coloring PS1, then you will need to familiar yourself with two things:
http://openports.se/sysutils/colorls To install packages requires understanding OpenBSD's package system. Carefully study Section 15 of the FAQ in preparation. |
|
|||
In this situation, what needs to done is the same irregardless of any emulation used underneath.
|
|
|||
Yes the output of ls command is what I meant. I realize that regardless of a real or virtual machine it's technically the "same" too, I just wanted you to know my system is all.
Thank you man. I appreciate it. |
|
|||
I had to add it manually with vi
|
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
I need help setting up queues. | MarcRiv | OpenBSD Security | 6 | 17th November 2009 11:31 PM |
7.0 to 7.1 retaining app. preferences etc. | maxrussell | FreeBSD Installation and Upgrading | 11 | 15th May 2009 08:40 AM |
Setting up nameservers | paran0iaX | OpenBSD General | 11 | 13th March 2009 12:16 PM |
Setting Up MPD | benjgvps | FreeBSD General | 0 | 21st May 2008 12:20 PM |
thanks for setting this up | DraconianTimes | Off-Topic | 8 | 5th May 2008 08:14 AM |