diff options
Diffstat (limited to 'xi')
-rwxr-xr-x | xi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xi b/xi index 8a8e2a8..a5cd21e 100755 --- a/xi +++ b/xi @@ -39,6 +39,8 @@ SUDO= if command -v sudo >/dev/null && sudo -l | grep -q -e ' ALL$' -e xbps-install; then SUDO=sudo +elif command -v doas >/dev/null && [ -f /etc/doas.conf ]; then + SUDO=doas elif [ "$(whoami)" != root ]; then SUDO='su root -c '\''"$@"'\'' -- -' fi |