Unix/Linux Go Back    



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 Unix and Linux 09-12-2008   -   Original Discussion by aarora_98
amaltemara's Unix or Linux Image
amaltemara amaltemara is offline
Registered User
 
Join Date: Sep 2008
Last Activity: 12 September 2008, 12:45 PM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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