Speed up exec-path-from-shell
Moved PATH settings to .zshenv to allow for non-interactive shell loading.
This commit is contained in:
parent
1a797360fe
commit
9def9ca4e7
1 changed files with 5 additions and 3 deletions
8
init.el
8
init.el
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue