From 5aa3a0d6c664e9e7bbb5d3da443cb8700a1b436e Mon Sep 17 00:00:00 2001 From: "chawley (shawshank)" Date: Sat, 11 Jul 2020 14:32:23 -0400 Subject: [PATCH 1/3] Edited .zshrc to enable rootless virsh --- .zshrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.zshrc b/.zshrc index d452cfa..4cc58f1 100644 --- a/.zshrc +++ b/.zshrc @@ -140,3 +140,5 @@ 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 + +export LIBVIRT_DEFAULT_URI=qemu:///system From d277d45b20844bdb7a96bf7067c8042827caeeda Mon Sep 17 00:00:00 2001 From: "chawley (chawley-admin)" Date: Thu, 6 Aug 2020 07:44:58 -0400 Subject: [PATCH 2/3] Solved the zshprompt issue --- .zshrc | 2 -- 1 file changed, 2 deletions(-) diff --git a/.zshrc b/.zshrc index 4cc58f1..d452cfa 100644 --- a/.zshrc +++ b/.zshrc @@ -140,5 +140,3 @@ 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 - -export LIBVIRT_DEFAULT_URI=qemu:///system From f321d9ba6058fce96469b3a4f2daba58535ca59c Mon Sep 17 00:00:00 2001 From: "chawley (derry)" Date: Thu, 6 Aug 2020 08:16:19 -0400 Subject: [PATCH 3/3] 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 +