Skip to content

zonuexe/shellenv-el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

shellenv.el

Load environment-variables from shell.

Important notifications

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.

Related links

Target

  • Emacs 23+
  • Zshell
    • (Bash, and other UNIX shells.)

First step

Write PATH settings and rbenv initialize snippet in .zshrc. Port this to .zshrc if these already exists other files.

Install

  • 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)

manual install

  • Get latest version of shellenv.el, and locate it in load-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

Usage

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)

Sample

日本語でおk

Japanese documents

License

shellenv.el is licensed under GPL version 3 and NYSL 0.9982. ( DUAL License )

About

We hate to repeat myself. Write setting in one place.

Resources

Stars

Watchers

Forks

Packages

No packages published