From 43bdaf3ef8d7675ee5e8e028970d0f7ccc5dd2bc Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Fri, 21 Jun 2024 12:30:44 +0200 Subject: [PATCH] Pass env vars when using alias See https://forums.truenas.com/t/changing-default-editor-update-alternatives-not-working/6984/6 --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6025e80..093cf54 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ The `jlmkr.py` script (and the jails + config it creates) are now stored on the Optionally you may create a shell alias for the currently logged in (admin) user to conveniently run `jlmkr.py` without having to change into the `jailmaker` directory or specify the full absolute path. I suggest to create the `jlmkr` alias like this: ```shell -echo "alias jlmkr=\"sudo '/mnt/mypool/jailmaker/jlmkr.py'\"" >> ~/.bashrc +echo "alias jlmkr=\"sudo -E '/mnt/mypool/jailmaker/jlmkr.py'\"" >> ~/.bashrc ``` Please replace `/mnt/mypool/jailmaker/` with the actual path to where you stored `jlmkr.py`. If you're using zsh instead of bash, then you should replace `.bashrc` in the command above with `.zshrc`. If you've created the alias, you may use it instead of `./jlmkr.py`.