Compare commits

..

No commits in common. "1d3d68926baa2b4a5793d6d65582a3efc8040627" and "21643ed7f86b2a448c09c214b7470f48f63674a3" have entirely different histories.

View file

@ -1,24 +1,15 @@
#!/bin/bash #!/bin/bash
exec_as() { if [ "$(whoami)" != root ]; then
local user exec sudo -u qemu "$0" "$@"
user="$1" else
shift cd || exit
fi
if [ "$(whoami)" != "$user" ]; then
exec sudo -u "$user" "$0" "$@"
else
cd || exit
fi
}
exec_as qemu "$@"
bin=bin bin=bin
images=images images=images
PATH="./${bin}:${PATH}" PATH="./${bin}:${PATH}"
EDITOR="${EDITOR:-nvim}"
alias ls='ls --color=auto' alias ls='ls --color=auto'
shopt -s expand_aliases shopt -s expand_aliases