Turn Color off in VI

  1. Browse to your user directory with the following command:
    cd ~
  2. Create a .vimrc file with the following command:
    vi .vimrc
  3. Click i for insert mode.
  4. Type the following command below to disable syntax:
    syntax off
    
  5. Hold Shift and hit : then type wq to save and quit the file.

How to Change Your Default Terminal Prompt in Mac OS X Lion – Matt Mazur

https://mattmazur.com/2012/01/27/how-to-change-your-default-terminal-prompt-in-mac-os-x-lion/

How to Change Your Default Terminal Prompt in Mac OS X Lion

Posted on January 27, 2012 by Mazur. This entry was posted in Tutorial. Bookmark the permalink.
By default, when you open up a new Terminal window in Mac OS X the command prompt displays a relatively long name:

I prefer to shorten this to a simple dollar sign ($) in order to free up space.

To change your default command line prompt, follow these instructions:

1) Navigate to your home directory:

cd ~

2) Create a file called .bash_profile

vi .bash_profile

3) Add the following line (press i)

export PS1="$ "

4) Save the file (press Escape, type :wq and hit Enter)

5) Restart Terminal

You should now see something like this:

There are other ways you can configure the command prompt (for example, showing the current time), but I prefer to keep it simple.

Related

How to Add Terminal Aliases in Mac OS X LionIn “Tutorial”

How to Change Your Default Screenshot Location on Mac OS X LionIn “Tutorial”

Macs: Productivity made EasyIn “Programming”