[libvirt-users] Permanently change default virsh editor

J Travis Lindsey reachjtl at gmail.com
Wed Jul 6 19:40:34 UTC 2016


Awesome. Thank you that worked great.

On Wed, Jul 6, 2016 at 3:31 PM, Cole Robinson <crobinso at redhat.com> wrote:

> On 07/06/2016 03:27 PM, J Travis Lindsey wrote:
> > Hello, I found in the docs that I can change the editor I use on a per vm
> > bases with the following:
> > *EDITOR=$your-favorite-editor virsh edit $your-vm-name*
> >
> > But how do I change it permanently so when I run:
> > *virsh edit $your-vm-name*
> >
> > It defaults to my favorite editor (vim)?
>
> EDITOR is just a shell environment variable, so if you're using bash shell
> drop something like
>
> export EDITOR=your-favorite-editor
>
> in ~/.bashrc, and it will be set for all future shell sessions
>
> - Cole
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20160706/c739cb2f/attachment.htm>


More information about the libvirt-users mailing list