LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-27-2004, 08:37 AM   #1
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Talking howto change the editor of crontab


hy all,
how can i assing mcedit to the default editor instead of vi when i type "crontab -e" ?

thnx
 
Old 08-27-2004, 10:39 AM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Linux Mint 17, Debian 8
Posts: 7,865

Rep: Reputation: 311Reputation: 311Reputation: 311Reputation: 311
"how can i assing mcedit to the default editor instead of vi when i type "crontab -e" ?"

Try setting the editor variable.
EDITOR=mcedit

If that works OK then put the command in /etc/rc.local to make it a permanent change.

------------------------
Steve Stites
 
Old 08-27-2004, 04:10 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,694

Rep: Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217Reputation: 3217
Or better yet add the EDITOR environment variable to your users .bash_profile.
 
Old 08-28-2004, 01:30 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Original Poster
Rep: Reputation: 50
thanks for reply.

it doesnt work. am i missing something?

[mesut@teknik mesut]$ cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin
EDITOR=/usr/bin/mcedit
export EDITOR
export PATH
unset USERNAME
 
Old 08-28-2004, 04:03 AM   #5
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Original Poster
Rep: Reputation: 50
ok. it is done.

i added the following line into .bash_profile
export EDITOR=/usr/bin/mcedit

thnx again.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"HOWTO Change Colour of Comments in VIM editor" manikantha Linux - General 8 07-16-2013 03:36 AM
How to change editor font for Xmanager 1.3.9? kranti Linux - Newbie 0 10-22-2005 06:02 AM
how to change default SUDO editor??? orgee Linux - Software 3 10-12-2004 07:39 PM
how can I change the default editor (vipw, crontab -e) or pager? Xavius Linux - Newbie 1 04-05-2004 01:45 PM
crontab editor changes slack66 Linux - General 1 08-04-2003 08:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 01:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration