commit 44bbde278ac4261b0420a01aee424e55609e4c2b parent e271cd136ad3b6ccbcdeb91fc2aa79a0f09865a3 Author: andsy10 <andsy1016@gmail.com> Date: Thu, 8 Oct 2026 23:12:24 +0800 Add exec-path-from-shell for shell environment sync Diffstat:
| M | lisp/init-base.el | | | 5 | +++++ |
| M | lisp/init-startup.el | | | 12 | ------------ |
2 files changed, 5 insertions(+), 12 deletions(-)
diff --git a/lisp/init-base.el b/lisp/init-base.el @@ -363,5 +363,10 @@ (add-hook 'lazy-count-update-hook #'force-mode-line-update)) +;; environment sync +(my-use-package exec-path-from-shell + :init + (exec-path-from-shell-initialize)) + (provide 'init-base) ;;; init-base.el ends here diff --git a/lisp/init-startup.el b/lisp/init-startup.el @@ -48,18 +48,6 @@ ;; disable ring bell (setq ring-bell-function 'ignore) -;; package manager load path -(cond - (*is-windows* - (add-to-list 'exec-path (expand-file-name "H/appppppppppp/scoop/apps/")) - (setenv "PATH" (concat (expand-file-name "H/appppppppppp/scoop/apps/") ";" (getenv "PATH")))) - (*is-mac* - (add-to-list 'exec-path (expand-file-name "/opt/homebrew/bin/")) - (setenv "PATH" (concat (expand-file-name "/opt/homebrew/bin/") ":" (getenv "PATH")))) - (*is-linux* - (add-to-list 'exec-path (expand-file-name "~/.guix-home/profile/bin/")) - (setenv "PATH" (concat (expand-file-name "~/.guix-home/profile/bin/") ":" (getenv "PATH"))))) - ;; scratch buffer (setq initial-scratch-message "")