From 783f8eff3b32b9ffed1bb5d3d3d070713e089f88 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 8 Feb 2025 07:38:46 -0700 Subject: [PATCH] docs: show how to set the PATH for Finder on macos per https://github.com/wezterm/wezterm/discussions/6630#discussioncomment-12060141 --- docs/faq.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/faq.md b/docs/faq.md index e2087de38..62a265d35 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -376,10 +376,26 @@ config.set_environment_variables = { } ``` +and yet another option is to configure launchd to use a more expansive +PATH for all processes in your user session using `launchctl config user path` +doing something like this: + +```console +$ sudo launchctl config user path +``` + +!!! warning + Take care with setting the user path using this technique, as if you change + that path in a way that system-provided utilities are lower priority than + alternative software that you have installed, you may unexpectedly change + the overall system behavior. + See also: * [set_environment_variables](config/lua/config/set_environment_variables.md) * [SpawnCommand](config/lua/SpawnCommand.md) * [wezterm.config_file](config/lua/wezterm/config_file.md) * [wezterm.shell_quote_arg](config/lua/wezterm/shell_quote_arg.md) + * [how to set the PATH for Finder-launched applications](https://apple.stackexchange.com/q/51677/166425) + * [what does launchctl config user path do?](https://stackoverflow.com/q/51636338/149111)