Skip to content

Commit

Permalink
look for files whose names contain the full system-name
Browse files Browse the repository at this point in the history
Fixes #2.
  • Loading branch information
tarsius committed Mar 7, 2015
1 parent e932738 commit 40eba65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keychain-environment.el
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ and GPG_AGENT in Emacs' `process-environment' according to
information retrieved from files created by the keychain
script."
(interactive)
(let* ((host (car (split-string system-name "\\." t)))
(let* ((host (system-name))
(ssh-file (expand-file-name (concat host "-sh") keychain-directory))
(gpg-file (expand-file-name (concat host "-sh-gpg") keychain-directory))
(ssh-data (and (file-exists-p ssh-file) (keychain--read-file ssh-file)))
Expand Down

0 comments on commit 40eba65

Please sign in to comment.