How to make Terminal prompt change permanent?

I am using OS X Lion v10.7.2 and want to change my terminal prompt, but everytime I shutdown and restart Terminal, it defaults back to the original.
I am using
export PS1="\w >"
Thanks

If it exists, its in your Home Directory
     ls .bash_profile
If you get
      ls: .bash_profile: No such file or directory, then just create it with:
          echo PS1='\w >' >> .bash_profile

Similar Messages

  • How to make the layout changes permanent. Urgent!!!

    I have to upgrade a fmb file built in Developer2000(forms 4.5) to forms 9i. I opened it in forms9i builder and Performed some resizing and re allignment to the items in the canvas. But when I save the file and reopen the canvas I found some of the changes are effected and some are gone say the object appear at the same place where it was before...
    Note : there is no frames in this fmb they have used only the staight lines to create the box around the section of the form. so setting the frame property update to manually from Automatic is not relevant here.
    Could any one suggest me to proceed...
    Thanks in advance...

    Hi Garry,
    I beleive My explanation about the case is not clear,
    I want to migrate a .fmb file developed in Forms4.5 (Character Mode) to the Latest version say Forms 9i(GUI).
    As I opened the file in the Forms9i environment some automatic validation and migration took place.
    In the Layout editor the Items appeared displaced as the effect of conversion from Character mode file to BitMap file. So I manually Increased the Width of each Text Item to a single Space. (Note: Iam not using the ifcmp90.exe syntax as I didnot go upto the compilation level as of now).
    I increased the width of the text items to one space to adjust the bevel effects of the web deployed forms.
    I moved the objects to exactly position before the prompts
    and as frames are not available in the character mode they have used straight line objects to seperate the items in the layout. These Lines I resized to adjust the form to accomodate the increased width items.
    But I moved these lines a bit apart from the items and increased the vertical space between the items in the header section . These two changes alone is not taking place.
    If this your understanding, kindly let me know how to send the sample to Oracle Support

  • How to make url portlet parameter permanent

    I have set up a url portlet inside portal.
    I put tags in the provider.xml file for an input parameter for my url portlet to use. (I used the <isMandatory>true</isMandatory> so I would be prompted inside portal for the value.)
    So, when I add the url portlet to a portal page a window pops up and asks me to submit a value for the portlet to use.
    The portlet runs sucessfully.
    MY QUESTION: How can I make the value that the page creator enters permanent so that the url portlet automatically picks it up whenever the page is run?
    My purpose is to be able to add this portlet to several different pages and have it use the value that was defined for it when the page was created.
    I have read several articles, but I must be missing something. Any ideas are appreciated.

    Hi,
    You can make the following change in your provider.xml file.
    <inputParameter class="oracle.portal.provider.v2.URLPortletParameter">
    <name>csz</name>
    <isMandatory>false</isMandatory>
    <value>Set your value here</value>
    <displayName>What location do you want a map for (City, State or Zip)?</displayName>
    </inputParameter>
    By doing so, it'll pick up the value from the provider.xml and append the value to the parameter in the URL, so that the constructed URL will have the parameter value without having to customize the page.
    I hope this answers your question. Do feel free to come back here if you have any more problems.
    Ashish.

  • How To Make File Association Changes Permenant

    I'm having a problem with file associations reverting back every time I turn of my computer.
    I'm using Finder "change all" function to change the file association.  It works until I turn off my computer.  Once rebooted file associations return.
    It's a real hassle.  For some reason MP4 files keep getting associated with Windows media player. Everytime I try to open one, parallalels loads up windows. 
    Any advise?

    ekohanowich wrote:
    how to make file able to open on pc
    I assume you mean Windows Computer.
    in Keynote:   file > export > PowerPoint
    Each Windows machine will need  Powerpoint or PowerPoint Viewer installed.

  • Why does my Terminal prompt change to " "?

    I am baffled by a behaviour of the Terminal app, when running a command which I have repeatedly and successfully used before.
    On a new Mac, I set up a group (within System Preferences > Users and Groups) containing two users who are to have complete access to any files placed within /Users/Shared/Documents/, called docShare.
    I then went into Terminal, and then tried running the following command at a normal-looking prompt:
    myMac:~ myName$ sudo chmod -R +a “group:docShare allow delete,readattr,writeattr,readextattr,writeextattr,list,search,add_file,add_sub directory,delete_child,read,write,execute,file_inherit,directory_inherit" /Users/Shared/Documents/
    (I sudo'ed just because various documents in the folders have different owners. I am the owner of the Documents folder itself.)
    Previously, when I've done this on our other Macs (and I've done the same thing for shared iTunes Media folders and iPhoto library), it works without a hitch. ls -le shows that the ACLs have been updated, and bingo! unfettered access to contents of the folder for the two users. This time, though, all that happens is that the prompt changes to an unadorned greater-than symbol:
    >
    A cursor flashes, but all subsequent keyboard input is ignored (or at least, it's not echoed on the screen). On quitting and relaunching Terminal, the default bash prompt reappears as shown above, but the ACLs haven't been altered.
    I can't help feeling I'm missing something simple here, but I really can't find anything relevant on on web searches. Can anyone enlighten me as to why this command fails on this specific folder, please? I'd be most grateful!

    Not to sharp, at least not anymore, I just cheated
    TextEdit is a good editor for doing text but a bad editor for doing systems type things, It has a bad tendency to changes things on you even in dumb mode. If you do any editing of system files or scripts (or even command line things like this) I recommend you get  TextWrangler a free editor geared towards this type of work.
    Anyway glad you got it to work.
    regards

  • How to return terminal prompt to default?

    I've recently noticed my terminal prompt seems to indicate the IP address of my cable router.
    I say recently, since I did have some Internet problems which were solved after powering down the router and removing the battery for a few minutes. Since then, the prompt has been:
    Last login: Mon Dec 26 18:27:44 on ttys000
    d24-235-195-133:~ user$
    Is there a way to return it to a 'default' prompt, and second, why did it change?
    Many thanks.

    MrHoffman is 100% correct.  Disk Utility repair permissions, verify (or even repair) have absolutely nothing to do with the prompt you are getting.
    And reinstalling Mac OS X will change nothing, as the problem, as MrHoffman explained, has nothing to do with your Mac.  It is your router and/or your ISP.
    The bash shell always does a reverse DNS lookup on your Mac's IP address to get your computer name.  The Mac's DNS lookup service does not get a result from the DNS servers, it will use your computer name as specified in System Preferences -> Sharing.  In your case, prior to restarting your cable modem, the DNS lookup did not return anything, so your sharing computer name was used.  After the cable modem restart, the DNS lookup started returning a result so bash used that information.
    Chances are it is a lot more work than it is worth trying to get the DNS lookup to stop returning a value, so it is easier to just change your PS1 shell variable and get on with life.
    You could even use the following to always get your sharing computer name
    PS1='$(networksetup -getcomputername):\W \u\$ '

  • How to make the prompt to pick the system date automatically at run time?

    Hi,
    I trying to create a publication for a report that has date prompt, When I try to schedule this publication  the query should automatically select system date for date prompt and and send out the report. Is there a way to do this in CMC?
    Thanks in advance
    Hema

    Hi Hema,
    You need to create this Exit Variable with the condition that it should be generated ias a optional variable in the universe.
    The reason for being is that when the prompt screen is appeared there is no default value which will be shown in the prompt. But when you press the run query button (will be enabled only after you make the prompt as optional) the BO query will fetch the data applying the restriction of the sysdate.
    I hope I have made myself clear.
    Regards,
    Rohit

  • How do you make a customized template?? When I customize an original template it does not apply it to the whole document! How do you apply style changes permanently to your document???

    When one customize text styles or spacing between paragraphs. How do you apply settings permanently to a document???
    Should you create a new template???

    Happily, when you edit a document created by a given template, the changes aren't stored in the template.
    If you want to get a template embedding your changes, you need to use :
    File > Save as Template
    then use the newly created custom template as starting point.
    Yvan KOENIG (VALLAURIS, France) dimanche 22 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My Box account  is : http://www.box.com/s/00qnssoyeq2xvc22ra4k
    My iDisk is : http://public.me.com/koenigyvan

  • How to make Highlighted links color permanent?

    Simply, for example, in Wikipedia, I clicked a link in their page to a different page, then that link would have been highlighted as "has been selected or clicked" with different color (in this case: purple), while links not have been clicked before are in blue.
    The problem is after a few week, the links the I have previously visited before which should have been in purple turned blue again indicating that that I have not visited this link before (but I already have). This seemingly seems like the cache have been reseted or cleared. But I have not cleared any cache. This could also be that the cache is full but I have not set any limit on the amount of content.
    So my question is, how do I ensure that the link that have been visited remain highlighted permanently for the font color so that I do not make the mistake of visiting the linked page again?

    Note that your System Details List shows that you have obsolete, no longer supported, preferences from previous Firefox versions.
    You can delete the prefs.js file and possible numbered prefs-##.js and user.js files to reset all prefs to the default value or reset these prefs to the default value via the right-click context menu on the <b>about:config</b> page or edit the prefs.js file and remove related line(s).
    Your System Details List also shows that you have a user.js file in the profile folder to initialize some prefs on each start of Firefox.
    The user.js file is only present if you or other software has created it, so normally it wouldn't be there.
    you can check its content with a plain text editor if you didn't create this file yourself.
    The user.js file is read each time you start Firefox and initializes preferences to the value specified in this file, so preferences set via user.js can only be changed temporarily for the current session.
    *http://kb.mozillazine.org/Preferences_not_saved

  • How to make a VPN route permanent ?

    I have a VPN between my office and a lab on the east coast and I can use the following command from my Terminal to enable the route in my Leopard Server:
    route add -net 10.48.239.0 -netmask 255.255.255.0 192.168.1.254
    How can I make this a permanent route? At this time if I reboot the server I must get into the Terminal and use the following two lines to make everything work again:
    sudo su
    route add -net 10.48.239.0 -netmask 255.255.255.0 192.168.1.254
    Thanks for any information any of you may have.
    By the way within 6 months I will be doing the same task on a new Snow Leopard Server so if there are differences please feel free to chime in.

    If you're having to manually set VPN routes then you're doing something wrong.
    It isn't clear from your post where you're doing this. You say you set this 'in my Leopard Server', but it's not clear whether that server is the VPN server on the east coast, a server in your office, or another server anywhere else.
    Normally, the VPN server sends out a list of routes the client should use, so knowing the above will help narrow down where your problem lies.

  • How to make an ip assignment permanent...

    I used to do this when I was running DHCP on my Netware server. I am now running DHCP on OES 11. I open the DNS/DHCP Mgmt Console and go to the DHCP (OES Linux) tab, but I don't have any method to make the assignment permanent. I only see a Lease tab with information about the ip address. What am I missing? How do I do this?
    Ken

    Originally Posted by ketter
    I used to do this when I was running DHCP on my Netware server. I am now running DHCP on OES 11. I open the DNS/DHCP Mgmt Console and go to the DHCP (OES Linux) tab, but I don't have any method to make the assignment permanent. I only see a Lease tab with information about the ip address. What am I missing? How do I do this?
    Ken
    Hey Ken,
    There is no option to change a dynamic assignment to a fixed one from within the Java management console (as the dynamic assignments are not written into eDirectory, but are written in the dhcp.leases file that is created on the server running dhcp services. The tool can only read that file to retrieve leases)
    You do have the option to create a new manual assignment.
    Cheers,
    Willem

  • How to make a value changed based upon values selected in dropdown menu

    Hi,
    I am making my first Dreamweaver website using Dreamweaver CS6 on a windows 8 PC.
    I am trying to make a website where the user selects different criteria; in this example an ipod's model, condition and size from three seperate dropdown selections (similar to www.itrado.co.uk) and then based upon these selections a value for their ipod is shown. However i cannot work out how to display a value which remains on the same page and changes based upon the values which have been selected from the dropdown boxes. I was planning on creating a database and then creating a simple code which retrieves the value from the database which corresponds to the three selected values, however i am not sure how to go about doing this.
    Any help would be greatly appreciated.
    Many Thanks,
    Henry

    You need scripts for this. Try this jQuery tutorial
    http://anthonygthomas.com/2010/03/14/display-form-fields-based-on-selection-using-jquery/
    Nancy O.

  • [SOLVED] How to make settings in LXTerminal permanent?

    This is what I'm trying to do with the LXTerminal: Change the text color, make the window 100% transparent (including frames) and make the window pop up in my upper left corner at startup.
    This is what I can do, and what I need help with:
    - I can make the LXTerminal launch at startup editing /etc/xdg/lxsession/LXDE/autostart, but not where I want it (only default).
    - I can change the text color, and make the window transparent (including frames with the help of obconf), but after reboot the transparency is gone, and I get this black header on my window that I have to remove by a right click option. All settings is set manually in the LXTerminal GUI, not by command line.
    I've been searching the internet for solutions, but non of them seems to work for me. Everything I came across referred to Openbox files that doesn't exist in my setup. I'm fairly new to Arch, so please bare with my ignorance. Relevant software I run: Xorg, LXDM and LXDE.
    Last edited by madr (2013-04-29 20:41:11)

    Openbox is part of the LXDE group - so if you installed the whole group (as is the default action) you should have it already
    :: There are 20 members in group lxde:
    :: Repository community
    1) gpicview 2) libfm 3) lxappearance 4) lxappearance-obconf
    5) lxde-common 6) lxde-icon-theme 7) lxdm 8) lxinput 9) lxlauncher
    10) lxmenu-data 11) lxmusic 12) lxpanel 13) lxrandr 14) lxsession
    15) lxshortcut 16) lxtask 17) lxterminal 18) menu-cache 19) openbox
    20) pcmanfm
    Enter a selection (default=all):
    ... and is the default LXDE windows manager - although you can use any other if you so like
    https://wiki.archlinux.org/index.php/LXDE
    https://wiki.archlinux.org/index.php/Openbox
    You may be able to do what you want with a keybinding in:
    ~/.config/openbox/lxde-rc.xml
    or a custom .desktop file in ~/.config/autostart
    Last edited by satanselbow (2013-04-29 14:03:40)

  • How to make sure the change of NLS_LANG is working?

    I want to show unicode through iSQL*PLUS.
    Refer to the guide article,there are three steps to reach it.
    1.browser encording :Unicode(UTF8)
    2.database character set : UTF8
    3.new environmental var : TRADITIONAL CHINESE_TAIWAN.UTF8
    I make sure that the 1 and 2 steps are definitely reached.
    But I'm not sure the apach server got the new parameter or not.It looks all the same.....
    So,my question is how can I got the information(NLS_LANG parameter) of HTTPServer?
    Besides,if anyone can teach me how to show unicode through iSQL*PLUS,I would be very greatful.
    Thank in advance.

    By Firefox index, did you mean site map?
    Firefox doesn't keep an index of a web site. The web site does.
    This sounds like a server configuration problem, not a browser problem. But could you please paste the full error messages(s) from Gater Host / WordPress?

  • How to make terminal repeat sentences

    In the terminal application, I use the "echo" command line a lot to get Terminal to repeat sentences that I input. I was wondering if it is possible to make the "Echo" command automatially repeat pre-set sentences. For example, I want Terminal to say "Good Morning" in the morning and "Good Night" at night. Is this possible? Thnaks in advance.

    You question is vague so giving a specific solution is difficult.
    What times exactly do you want the commands to run? Why do you need to do this in the Terminal?
    The absolute easiest way to do this is to use Automator and create a calendar event. Have the workflow run a shell or Applescript that speaks the sentence you want.
    For example
    then schedule this to run when you want it to. Same for Good Night.
    Thee are many other ways to schedule a job to run under OS X but launchd (see man page) is the prefered way but likely overkill for what you are asking.

Maybe you are looking for