for p in apt systemctl; do
    if type "$p" >/dev/null ; then
        alias "$p"="sudo $p"
    fi
done

for p in apt aptitude systemctl; do
    if type "$p" >/dev/null ; then
        alias "$p"="sudo $p"
    fi
done

Add aptitude to sudo programs
Add aptitude to sudo programs
