From 4435c0efc83b8fd0c2cae0a5fe0ce886b794552b Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 5 Jul 2020 01:43:34 +0100 Subject: darwin/bin: Add env.sh This short script defines a few environment variables with launchctl so macOS apps can access them. --- dotfiles-darwin/bin/env.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 dotfiles-darwin/bin/env.sh (limited to 'dotfiles-darwin/bin/env.sh') 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 -- cgit v1.2.3-70-g09d2