<div dir="ltr"><div><div><div><div><div><div>Normally, you can set environment variables in .bashrc or .bash_profile and if I am not mistaken in /etc, there is alos a bashrc file that is system-wide, maybehave a look at it.<br><br></div>After changing one of those file execute the following command to update your current console configuration<br><br></div>source <path/to/file><br><br></div>exemple:<br><br></div>source ~/.bashrc<br><br><br></div>Regards,<br><br><br></div>Roland.<br><div><div><div><div><div><br><div><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 7, 2016 at 11:46 AM, Michal Privoznik <span dir="ltr"><<a href="mailto:mprivozn@redhat.com" target="_blank">mprivozn@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 06.07.2016 21:27, J Travis Lindsey wrote:<br>
> Hello, I found in the docs that I can change the editor I use on a per vm<br>
> bases with the following:<br>
> *EDITOR=$your-favorite-editor virsh edit $your-vm-name*<br>
><br>
> But how do I change it permanently so when I run:<br>
> *virsh edit $your-vm-name*<br>
><br>
> It defaults to my favorite editor (vim)?<br>
<br>
This is distribution dependent. For instance, I'm unaware of any<br>
system-wide approach in Fedora (except for what Cole suggested, which<br>
will work everywhere). But for instance in gentoo you can:<br>
<br>
# eselect editor set vi<br>
<br>
Michal<br>
<br>
_______________________________________________<br>
libvirt-users mailing list<br>
<a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/libvirt-users" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/libvirt-users</a><br>
</blockquote></div><br></div></div></div></div></div></div></div></div>