Added a wrapped qemu export
to enable rootless control of virsh
This commit is contained in:
6
.zshrc
6
.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
|
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
|
||||||
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Enable rootless control of virsh, if installed
|
||||||
|
if [[ -f /usr/bin/virsh ]]; then
|
||||||
|
export LIBVIRT_DEFAULT_URI=qemu:///system
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user