aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/sudo.sh
blob: a588316895979d8fb0a9904ff2bfa5e797d361fe (plain)
1
2
3
4
5
# Add the -H parameter to sudo(8) calls, always use the target user's $HOME
sudo() {
    [ "$1" != -v ] && set -- -H "$@"
    command sudo "$@"
}