emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/exec-path-from-shell 3a8d97c096 110/114: Show how I add NI


From: ELPA Syncer
Subject: [nongnu] elpa/exec-path-from-shell 3a8d97c096 110/114: Show how I add NIX_PATH, SSH_AUTH_SOCK etc. to vars list
Date: Tue, 5 Sep 2023 04:00:08 -0400 (EDT)

branch: elpa/exec-path-from-shell
commit 3a8d97c096c2c5714b667130fd8a80d5622ee067
Author: Steve Purcell <steve@sanityinc.com>
Commit: GitHub <noreply@github.com>

    Show how I add NIX_PATH, SSH_AUTH_SOCK etc. to vars list
---
 README.md | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/README.md b/README.md
index a50fc66cc2..aa2e3fcf63 100644
--- a/README.md
+++ b/README.md
@@ -80,6 +80,13 @@ You can copy values of other environment variables by 
customizing
 
 This function may also be called interactively.
 
+The author uses the following configuration snippet before calling 
`exec-path-from-shell-initialize`:
+
+```el
+(dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID" "GPG_AGENT_INFO" "LANG" 
"LC_CTYPE" "NIX_SSL_CERT_FILE" "NIX_PATH"))
+  (add-to-list 'exec-path-from-shell-variables var))
+```
+
 ### Setting up your shell startup files correctly
 
 Note that your shell will inherit Emacs's environment variables when



reply via email to

[Prev in Thread] Current Thread [Next in Thread]