purcell / exec-path-from-shell

Make Emacs use the $PATH set up by the user's shell
Other
1.41k stars 81 forks source link

execute bash ~/.bashrc or zsh ~/.zshrc #26

Closed micanzhang closed 9 years ago

micanzhang commented 9 years ago

how execute bash ~/.bashrc or zsh ~/.zshrc in emacs, and copy then to emacs env?

purcell commented 9 years ago

Well, you shouldn't do that. Things which affect the environment should be in .bash_profile or .zshenv.

But with "-i" in exec-path-from-shell-arguments (the default), then those files should get executed.

micanzhang commented 9 years ago

looks like it source ~/.bashrc, actually my default shell is bash, so it's make sense, and j setq exec-path-from-shell-variables with list, everything done as what i wish, thx purcell!