docs: show how to set the PATH for Finder on macos

per https://github.com/wezterm/wezterm/discussions/6630#discussioncomment-12060141
This commit is contained in:
Wez Furlong committed 2025-02-08 07:38:46 -07:00
1 parent cdfa86aebd
commit 783f8eff3b
1 file changed
+16
+16
View File
@@ -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 <my path setting>
```
!!! 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)