summary refs log tree commit diff
path: root/emacs.d/core
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--emacs.d/core/core-editor.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/emacs.d/core/core-editor.el b/emacs.d/core/core-editor.el
index c8740db..5892471 100644
--- a/emacs.d/core/core-editor.el
+++ b/emacs.d/core/core-editor.el
@@ -11,11 +11,12 @@
   :config
   (setq counsel-find-file-at-point t))
 
-(use-package exec-path-from-shell
-  :ensure t
-  :config
-  (exec-path-from-shell-initialize)
-  (exec-path-from-shell-copy-envs '("TMPDIR" "GOPATH")))
+(when (memq window-system '(mac ns x))
+  (use-package exec-path-from-shell
+    :ensure t
+    :config
+    (exec-path-from-shell-initialize)
+    (exec-path-from-shell-copy-envs '("TMPDIR"))))
 
 (use-package ag
   :ensure t