[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/exec-path-from-shell eb4dda127e 056/114: Show which env va
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/exec-path-from-shell eb4dda127e 056/114: Show which env vars are being set in the wrong startup files |
Date: |
Tue, 5 Sep 2023 04:00:00 -0400 (EDT) |
branch: elpa/exec-path-from-shell
commit eb4dda127ea51adc0822c1e2fd9c23aa61f53a45
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Show which env vars are being set in the wrong startup files
---
exec-path-from-shell.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/exec-path-from-shell.el b/exec-path-from-shell.el
index a1f656b4d6..315b0d3683 100644
--- a/exec-path-from-shell.el
+++ b/exec-path-from-shell.el
@@ -194,9 +194,13 @@ as described by `exec-path-from-shell-getenvs'."
;; If the user is using "-i", we warn them if it is necessary.
(unless (eq exec-path-from-shell-arguments without-minus-i)
(let* ((exec-path-from-shell-arguments without-minus-i)
- (alt-pairs (exec-path-from-shell-getenvs names)))
- (unless (equal pairs alt-pairs)
- (warn "You appear to be setting environment variables in your
.bashrc or .zshrc: those files are only read by interactive shells, so you
should instead set environment variables in startup files like .bash_profile or
.zshenv. See the man page for your shell for more info. In future,
exec-path-from-shell will not read variables set in the wrong files."))))
+ (alt-pairs (exec-path-from-shell-getenvs names))
+ different)
+ (dolist (pair pairs)
+ (unless (equal pair (assoc (car pair) alt-pairs))
+ (push (car pair) different)))
+ (when different
+ (warn "You appear to be setting environment variables %S in your
.bashrc or .zshrc: those files are only read by interactive shells, so you
should instead set environment variables in startup files like .bash_profile or
.zshenv. Refer to your shell's man page for more info. In future,
exec-path-from-shell will not read variables set in the wrong files."
different))))
(mapc (lambda (pair)
(exec-path-from-shell-setenv (car pair) (cdr pair)))
- [nongnu] elpa/exec-path-from-shell 9365c94ef1 096/114: Clarify point in README, (continued)
- [nongnu] elpa/exec-path-from-shell 9365c94ef1 096/114: Clarify point in README, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 4ea306a76f 103/114: Prefer cl-gensym to gensym for better compatibility across emacs versions, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell e5647b9109 099/114: Add Emacs 27.1 to CI, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell d8824a3a4e 104/114: Set each instance of the buffer local variable eshell-path-env, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell d14d6d2966 106/114: Merge pull request #101 from mnewt/eshell-path-env-in-buffers, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell bf4bdc8b89 107/114: Add Emacs 27.2 to CI matrix, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 0a07f5489c 109/114: Merge pull request #105 from brandelune/patch-1, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell dff9ce3577 112/114: Detect "nu" as a non-standard shell, see #109, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 869bc7ac48 050/114: Merge pull request #28 from emacs18/patch-1, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 30c793b388 054/114: Preserve "" env var values: don't map them to nil, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell eb4dda127e 056/114: Show which env vars are being set in the wrong startup files,
ELPA Syncer <=
- [nongnu] elpa/exec-path-from-shell c6eedaf916 071/114: Merge pull request #62 from Fuco1/patch-1, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 1d373ba14c 070/114: Fix defcustom for exec-path-from-shell-shell-name, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 5736cc87e4 075/114: Add sentinel to exec-path-from-shell-printf (closes #41), ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 885b3de9bb 078/114: Fix checkdoc warning, bogus local var, non-standard keywords, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 699f41edb3 087/114: Show error if trying to run from a remote buffer, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell e24dddb3b7 038/114: Capitalize MELPA, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 8748769a6c 042/114: Better "motivation" description, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 9bc0f4a762 085/114: Note about how best to set up shell config files, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 76fbdf5d01 092/114: Fix ignore pattern in Actions YAML, ELPA Syncer, 2023/09/05
- [nongnu] elpa/exec-path-from-shell 6124001b69 101/114: Checkdoc fixes, ELPA Syncer, 2023/09/05