Extract env. vars from *login* shell
Bash needs the `-l` flag, as pointed out in 6220ace290 (r29480946)
and https://github.com/syl20bnr/spacemacs/issues/10906#issuecomment-402184237.
This commit is contained in:
parent
253a8ed413
commit
f4506aa445
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ current contents of the file will be overwritten."
|
||||||
(let ((shell-command-switch (cond
|
(let ((shell-command-switch (cond
|
||||||
((or(eq system-type 'darwin)
|
((or(eq system-type 'darwin)
|
||||||
(eq system-type 'gnu/linux))
|
(eq system-type 'gnu/linux))
|
||||||
"-ic")
|
"-ilc")
|
||||||
((eq system-type 'windows-nt) "-c")))
|
((eq system-type 'windows-nt) "-c")))
|
||||||
(executable (cond ((or(eq system-type 'darwin)
|
(executable (cond ((or(eq system-type 'darwin)
|
||||||
(eq system-type 'gnu/linux)) "env")
|
(eq system-type 'gnu/linux)) "env")
|
||||||
|
|
Reference in a new issue