Speed up exec-path-from-shell

Moved PATH settings to .zshenv to allow for non-interactive shell loading.
This commit is contained in:
Dimitri Lozeve 2024-02-14 10:49:06 +01:00
parent 1a797360fe
commit 9def9ca4e7

View file

@ -143,11 +143,13 @@
(use-package exec-path-from-shell (use-package exec-path-from-shell
:straight t :straight t
:init
(setq exec-path-from-shell-arguments '("-l"))
:config :config
(when (memq window-system '(mac ns x pgtk)) (when (memq window-system '(mac ns x pgtk))
(exec-path-from-shell-initialize) (dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID"))
(exec-path-from-shell-copy-env "SSH_AUTH_SOCK") (add-to-list 'exec-path-from-shell-variables var))
(exec-path-from-shell-copy-env "SSH_AGENT_PID"))) (exec-path-from-shell-initialize)))
;;; Menus and completion ;;; Menus and completion