aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2023-12-22 17:26:24 +1300
committerTom Ryder <tom@sanctum.geek.nz>2023-12-22 17:26:24 +1300
commit9ca502c802dc5399e5c0e25b73dbcf83eb671064 (patch)
treef77d3cda64d2099ed476a2b9ff2e679dfbb8e8b1
parentRemove picom completely (diff)
downloaddotfiles-9ca502c802dc5399e5c0e25b73dbcf83eb671064.tar.gz
dotfiles-9ca502c802dc5399e5c0e25b73dbcf83eb671064.zip
Remove sudo wrapper forcing -H/--set-home
-rw-r--r--README.md2
-rw-r--r--sh/shrc.d/sudo.sh8
2 files changed, 0 insertions, 10 deletions
diff --git a/README.md b/README.md
index 0c4ee069..6861776a 100644
--- a/README.md
+++ b/README.md
@@ -240,8 +240,6 @@ in `sh/shrc.d` to be loaded by any POSIX interactive shell. Those include:
- `ll()` runs `ls -Al` if it can, or `ls -al` otherwise.
- `path()` manages the contents of `PATH` conveniently.
- `scp()` tries to detect forgotten hostnames in `scp(1)` command calls.
-- `sudo()` forces `-H` for `sudo(8)` calls so that `$HOME` is never preserved;
- I hate having `root`-owned files in my home directory.
- `tor()` is just a terse shortcut for using Torsocks to anonymize TCP
connections from the current shell.
- `tree()` colorizes GNU `tree(1)` output if possible (without having
diff --git a/sh/shrc.d/sudo.sh b/sh/shrc.d/sudo.sh
deleted file mode 100644
index d9e30bc4..00000000
--- a/sh/shrc.d/sudo.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-# 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 "$@"
-}