diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 10:45:01 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-02-10 10:45:01 +1300 |
commit | 608ed7b842129437584338adaa4a5bbceb6c73de (patch) | |
tree | 84f5aaec171b96460b811501a6d199d5d3caed91 /bash/bashrc.d | |
parent | Forgot to update docs for install switches (diff) | |
download | dotfiles-608ed7b842129437584338adaa4a5bbceb6c73de.tar.gz dotfiles-608ed7b842129437584338adaa4a5bbceb6c73de.zip |
Always use -H switch for sudo(8)
If we're going to pretend to be someone else with sudo(8), that should
include $HOME; prevents annoying mixed permissions in my home directory
if nothing else
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r-- | bash/bashrc.d/aliases.bash | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bash/bashrc.d/aliases.bash b/bash/bashrc.d/aliases.bash index 375c0eb1..78d69503 100644 --- a/bash/bashrc.d/aliases.bash +++ b/bash/bashrc.d/aliases.bash @@ -13,3 +13,6 @@ alias ll='ls -al' # Re-source ~/.bashrc alias sb='source ~/.bashrc' +# sudo(8) should always attempt to use the target user's $HOME +alias sudo='sudo -H' + |