Jump to content

set -o vi : invalid option

augustpasimio's Photo
Posted Dec 09 2009 06:58 AM
3077 Views

Hi,
I put set -o vi in my .bash_profile. When .bash_profile is executed, I get :invalid option name. When I just type set -o vi on the command line, it works ok. Why do I get :invalid option when I execute .bash_profile?
Thanks,
August

Tags:
0 Subscribe


1 Reply

0
  sboss's Photo
Posted Dec 09 2009 08:10 AM

on linux I put the following in my .bash_profile:
set -o vi

on MacOSX Snow Leopard I put the following in the my .bash_profile:
set -o vi

and on both platforms it works for me.

Also it works for me on the commandline outside of the .bash_profile.