Skip to content

Provide a chache mechanism make sure exec-path-from-shell just execute once.

Notifications You must be signed in to change notification settings

manateelazycat/cache-path-from-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

What is this?

On MacOS, we always need load environment variables in Emacs to make shell-command etc tools can works as expected. exec-path-from-shell is wonderful extension to do that.

But command exec-path-from-shell-initialize is very slow and perhaps many libraries need call exec-path-from-shell-initialize itself.

So, cache-path-from-shell use cache mechanism make sure exec-path-from-shell-initialize just execute once and no matter how many times you call it.

Installation:

Install exec-path-from-shell first.

Then put cache-path-from-shell.el to your load-path. The load-path is usually ~/elisp/. It's set in your ~/.emacs like this:

(add-to-list 'load-path (expand-file-name "~/elisp"))
(require 'cache-path-from-shell)

Then feel free to call `exec-path-from-shell-initialize' at anyplace. ;)

About

Provide a chache mechanism make sure exec-path-from-shell just execute once.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published