On Thu, Mar 06, 2003 at 02:30:15PM +0000, Jan wrote: > Seing how there has been a number of questions about editing the > environment recently, I remembered I made a function that some might > find useful. It allows you to edit the environment of the current shell > in an editor -
Hi Jan - thats a great function. I have encountered a similar need but I also wanted to be able to make the change a permanent addition to my environment so I came up with this: alias aa="vi ~/.bashrc ;. ~/.bashrc ;" You can add this to your .bashrc or .aliases file. This is a very simple minded tool. After you edit your .bashrc file the .bashrc file gets sourced to add the changes your current environment and the same changes will persist after you logout so the next time you login the changes will still be there. The same idea can be used on a .profile or .bash_profile file. This aliases could be made more general by using Jan's logic which evaluates the $EDIT variable. Its a Good Thing (TM). If you only want the change to exist for your current login session, Use Jan's function. -- Jeff Kinz, Open-PC, Emergent Research, Hudson, MA. [EMAIL PROTECTED] copyright 2003. Use is restricted. Any use is an acceptance of the offer at http://www.kinz.org/policy.html. -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list