diff --git a/dotfiles/profile b/dotfiles/profile index 522556b..e13a289 100755 --- a/dotfiles/profile +++ b/dotfiles/profile @@ -26,4 +26,12 @@ if [ "$(uname)" = "Darwin" ] ; then export CLICOLOR fi +# Setup for libvirt +if [ -z "${LIBVIRT_DEFAULT_URI}" ] ; then + if [ "$(id -u)" == "0" ] || (id -g -n | grep -q "\blibvirt\b") ; then + LIBVIRT_DEFAULT_URI="qemu:///system" + export LIBVIRT_DEFAULT_URI + fi +fi + test -f "${HOME}/.profile.local" && . "${HOME}/.profile.local"