From f321d9ba6058fce96469b3a4f2daba58535ca59c Mon Sep 17 00:00:00 2001 From: "chawley (derry)" Date: Thu, 6 Aug 2020 08:16:19 -0400 Subject: [PATCH] Added a wrapped qemu export to enable rootless control of virsh --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index d452cfa..9733c2e 100644 --- a/.zshrc +++ b/.zshrc @@ -140,3 +140,9 @@ PATH="$HOME/.local/bin:$HOME/bin:$PATH" if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi + +# Enable rootless control of virsh, if installed +if [[ -f /usr/bin/virsh ]]; then + export LIBVIRT_DEFAULT_URI=qemu:///system +fi +