virsh editor

Carsten Aulbert carsten.aulbert at aei.mpg.de
Tue Mar 1 13:46:39 UTC 2011


Hu Jurgen

On Tuesday 01 March 2011 14:36:59 jurgen.depicker at let.be wrote:
> I have a small question: whenever I fire up virsh and want to edit a
> domain, it launches vi and I would like it to be nano.  Although i
> configured .bashrc to contain EDITOR=/usr/bin/nano  and
> VISUAL=/usr/bin/nano , virsh seems not to care.  So I need to launch
> 'EDITOR=/usr/bin/nano virsh' to get my wish fulfilled.  What am I doing
> wrong?

Are you exporting the values in .bashrc?

i.e. 

export EDITOR=/usr/bin/nano

(or

EDITOR=/usr/bin/nano
export EDITOR
)?

Cheers

Carsten




More information about the ubuntu-server mailing list