bash help please for noob

Discussion in 'macOS' started by bobbykasthuri, Feb 10, 2012.

  1. bobbykasthuri macrumors newbie

    Joined:
    Nov 15, 2011
    #1
    Hello all
    I have been trying to convert to .txt documents for keeping track of my life. I stubbled on todo.txt which seems to offer lots of ways to interact with .txt documents via terminal. HOwever, I am having the hardest time chaing basic things in my .bash_profile...First off, it is in my home directory i.e

    /Users/narayanankasthuri/.bash_profile.rtf

    and I open it and edit it in text editor...is that the right program to use...should it be saved as a .rtf file? I am literally trying to do the following found on an site for intro terminal:
    -----
    Open up either your .bashrc file. The way we set what information is displayed in the prompt is with the PS1 variable. Add this to the file:
    view plaincopy to clipboardprint?
    PS1='->'
    Notice that I don’t put spaces on either side of the equals sign; that’s necessary. Save this file in your home directory and re-open a terminal window. Now, you should have a prompt that looks like this:
    --------

    no matter what I change in the .bash_profile in text editor I can not make this happen....I know i am an idiot but please enlighten me!

    thanks
     
  2. psxguru macrumors 6502a

    Joined:
    May 19, 2006
    #2
    You can edit .bash_profile in any text editor BUT it must...

    a) be saved in text/ascii format NOT RTF format, use the make plain text option in textedit

    b) the file must be called .bash_profile with no extension (no .txt or .rtf extension)
     

Share This Page