Load environment-variables from shell.
shellenv.el
is deprecated. It's just an defective subset of purcell/exec-path-from-shell.
All your demand will be met by exec-path-from-shell
, and I think that it does not have a fault.
This repository is left only for my studying. Your code using shellenv
should be replaced without exception by exec-path-from-shell
.
- purcell/exec-path-from-shell
- Add shellenv recipe by zonuexe · Pull Request #829 · milkypostman/melpa
- (Japanese) EmacsでPATHの設定が引き継がれない問題をエレガントに解決する
- Emacs 23+
- Zshell
- (Bash, and other UNIX shells.)
Write PATH
settings and rbenv initialize snippet in .zshrc
.
Port this to .zshrc
if these already exists other files.
- git
git clone git@github.com:zonuexe/shellenv-el.git ~/.emacs.d/site-lisp/shellenv-el
git submodule add git@github.com:zonuexe/shellenv-el.git site-lisp/shellenv-el
- el-get
- package.el (MELPA)
- Get latest version of
shellenv.el
, and locate it inload-path
. - for example...
cd $HOME/.emacs.d/lisp && wget https://raw.github.com/zonuexe/shellenv-el/master/shellenv.el
curl https://raw.github.com/zonuexe/shellenv-el/master/shellenv.el > $HOME/.emacs.d/lisp
Write in your .emacs
script.
(require 'shellenv)
;; for case of shellenv.el is in out of load-path
(require 'shellenv "~/.emacs.d/site-lisp/shellenv-el/shellenv")
;; most simple way
(shellenv/setpath 'zsh)
;; other way
(custom-set-variables
'(shellenv/shell 'zsh))
(shellenv/setpath)
Japanese documents
shellenv.el
is licensed under GPL version 3 and NYSL 0.9982. ( DUAL License )