https://github.com/manateelazycat/cache-path-from-shell
Provide a chache mechanism make sure exec-path-from-shell just execute once.
https://github.com/manateelazycat/cache-path-from-shell
Last synced: 8 months ago
JSON representation
Provide a chache mechanism make sure exec-path-from-shell just execute once.
- Host: GitHub
- URL: https://github.com/manateelazycat/cache-path-from-shell
- Owner: manateelazycat
- Created: 2018-09-19T06:25:59.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-09-19T07:13:35.000Z (about 7 years ago)
- Last Synced: 2024-12-30T19:35:17.761Z (9 months ago)
- Language: Emacs Lisp
- Size: 1.95 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/purcell/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](https://github.com/purcell/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:```Elisp
(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. ;)