👤
Home Man
Search
Today's Posts
Register


set EDITOR=vi -> default editor not setting for cron tab

Shell Programming and Scripting




Kindly Note - This is a Single User Post by Forum Member amaltemara Regarding:
set EDITOR=vi -> default editor not setting for cron tab.
Please Follow The Primary Link Above to View the Full Discussion.

Old 09-12-2008
Lightbulb check VISUAL env variable

I had the same problem, check and see if the VISUAL env. variable is set to something other than vi.

Code:
set | grep VISUAL

If so, then that's overriding the EDITOR variable.

Many ways to fix...


Add to your ~/.bash_profile (or /etc/profile, or /etc/profile.d/SOME_FILE)
Code:
export VISUAL=vi