]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: new environment variable VIRSH_HISTSIZE
authorPavel Raiskup <praiskup@redhat.com>
Mon, 28 Oct 2013 13:38:46 +0000 (14:38 +0100)
committerEric Blake <eblake@redhat.com>
Tue, 29 Oct 2013 12:52:59 +0000 (06:52 -0600)
commit1bc12e1c46316ee2cd88f374ccdb89325ec2e4d7
treefa49ca2b03fd30ed24f8021953ab7fe0873ff02b
parent9119581c71a72f12f95f91285a7b2f0e1a4fd092
virsh: new environment variable VIRSH_HISTSIZE

Allow adjust the number of commands to remember in the command
history.

* tools/virsh.c (vshReadlineInit): Read and sanity the
VIRSH_HISTSIZE variable.
(VIRSH_HISTSIZE_MAX): New constant.
* tools/virsh.pod: Document VIRSH_HISTSIZE variable.

Signed-off-by: Eric Blake <eblake@redhat.com>
tools/virsh.c
tools/virsh.pod