aboutsummaryrefslogblamecommitdiff
path: root/bash/bashrc.d/sudo.bash
blob: d6d91d121048bae8f4a089ad7f97a1fdc814e16e (plain) (tree)
1
2
3
4
5
6
7

                                                                           

                            
      
                     
 
# Add the -H parameter to sudo(8) calls, always use the target user's $HOME
sudo() {
    if [[ $1 != -v ]] ; then
        set -- -H "$@"
    fi
    command sudo "$@"
}