Skip to content

Commit 8121f20

Browse files
committed
Avoid interactive shell when getting path
Interactive shells without a terminal don't play well with current zsh setup.
1 parent 2138ed1 commit 8121f20

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

customizations/go.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
(path-from-shell (replace-regexp-in-string
44
"[ \t\n]*$"
55
""
6-
(shell-command-to-string "$SHELL --login -i -c 'echo $PATH'")))
6+
(shell-command-to-string "$SHELL --login -c 'echo $PATH'")))
77
(go-path-from-shell (replace-regexp-in-string
88
"[ \t\n]*$"
99
""
10-
(shell-command-to-string "$SHELL --login -i -c 'echo $GOPATH'"))))
10+
(shell-command-to-string "$SHELL --login -c 'echo $GOPATH'"))))
1111
(setenv "PATH" path-from-shell)
1212
(setenv "GOPATH" go-path-from-shell)
1313
(setq eshell-path-env path-from-shell) ; for eshell users

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy