diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2020-07-05 01:43:34 +0100 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2020-07-05 01:43:34 +0100 |
| commit | 4435c0efc83b8fd0c2cae0a5fe0ce886b794552b (patch) | |
| tree | b8374325bbdf607499009e47953890e833da8b71 /dotfiles-darwin/bin/env.sh | |
| parent | 37a5938a0fb4d04ce9684ba2cfc517cb8e947926 (diff) | |
darwin/bin: Add env.sh
This short script defines a few environment variables with launchctl so
macOS apps can access them.
Diffstat (limited to 'dotfiles-darwin/bin/env.sh')
| -rwxr-xr-x | dotfiles-darwin/bin/env.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dotfiles-darwin/bin/env.sh b/dotfiles-darwin/bin/env.sh new file mode 100755 index 0000000..00c1bfa --- /dev/null +++ b/dotfiles-darwin/bin/env.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh + +for env in PATH UNAME XDG_{{CACHE,CONFIG,DATA}_HOME,RUNTIME_DIR}; do + launchctl setenv ${env} ${(P)env} +done |
