aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/sudo.sh
blob: d9e30bc4c568ec1bab45b154ca1a3070e30b0229 (plain) (blame)
1
2
3
4
5
6
7
8
# Add the -H parameter to sudo(8) calls, always use the target user's $HOME
sudo() {
    case $1 in
        -v) ;;
        *) set -- -H "$@" ;;
    esac
    command sudo "$@"
}