The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
Article Feedback - changing your default editor
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Setting default editor
Author: Keith Ng 
Date:   26-10-03 17:06

Just to add,

To set your favourite editor as the default for every login, you might want to do the following:

1) Go to the user's homedir (eg. /home/keith)
2) Edit the shell dotfile (.bash_login for bash, .cshrc for csh) to have the following values, usually:

export EDITOR=pico (for bash) or
setenv EDITOR pico (for csh)

note that you might want to specify the fullpath, eg
export EDITOR=/usr/local/bin/pico


3) Save the file and relogin.
4) Test by typing "crontab -e", Voila! It should bring up your favourite editor.

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org