aboutsummaryrefslogtreecommitdiff
path: root/spacemacs.el
diff options
context:
space:
mode:
Diffstat (limited to 'spacemacs.el')
-rw-r--r--spacemacs.el15
1 files changed, 8 insertions, 7 deletions
diff --git a/spacemacs.el b/spacemacs.el
index b3c6c6e..5c40167 100644
--- a/spacemacs.el
+++ b/spacemacs.el
@@ -631,13 +631,14 @@ This is the place where most of your configurations should be done. Unless it is
"." 'spacemacs/jump-to-definition
"," 'tide-jump-back)
- ;; https://emacs.stackexchange.com/questions/17866/magit-how-to-use-systems-ssh-agent-and-dont-ask-for-password
- (exec-path-from-shell-initialize)
- (exec-path-from-shell-copy-env "SSH_AGENT_PID")
- (exec-path-from-shell-copy-env "SSH_AUTH_SOCK")
-
- ;; github layer
- (exec-path-from-shell-copy-env "EMACS_GITHUB_TOKEN")
+ ;; https://github.com/nubank/nudev/pull/509
+ (when (require 'exec-path-from-shell nil 'noerror)
+ ;; https://emacs.stackexchange.com/questions/17866/magit-how-to-use-systems-ssh-agent-and-dont-ask-for-password
+ (exec-path-from-shell-initialize)
+ (exec-path-from-shell-copy-env "SSH_AGENT_PID")
+ (exec-path-from-shell-copy-env "SSH_AUTH_SOCK")
+ ;; github layer
+ (exec-path-from-shell-copy-env "EMACS_GITHUB_TOKEN"))
;; https://github.com/syl20bnr/spacemacs/issues/774
(unless (file-exists-p (concat spacemacs-cache-directory "undo"))