Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Apr 16, 2015
  1. Merge pull request #3 from stsquad/call-keychain

    keychain-environment: call keychain directly
  2. @stsquad

    keychain-environment: call keychain directly

    stsquad authored
    Pull request #2 broke keychain on my Ubuntu LTS system. It seems there
    is some debate over what value of ${HOSTNAME} is used when creating the
    file paths. To avoid this ambiguity we can call keychain directly with
    the --eval option. As a bonus we can delete the rest of the code for
    reading the files into buffers.
    Signed-off-by: Alex Bennée <>
Commits on Mar 7, 2015
Commits on Nov 19, 2014
  1. bump to 2.1.0

  2. fix commentary

  3. cosmetics

  4. Merge pull request #1 from stsquad/master

    keychain-environment: use temp-buffer to visit files
Commits on Nov 18, 2014
  1. @stsquad

    keychain-environment: use temp-buffer to visit files

    stsquad authored
    Using find-file-noselect has a lit of potential side effects including
    running various hooks. Considering we only read two files when we
    refresh the environment we can replace the read code with a very simple
    with-temp-buffer form to do it for us.
    Signed-off-by: Alex Bennée <>
Commits on Oct 26, 2012
  1. bump to 2.0.1

  2. fix a fatal typo

Commits on Oct 25, 2012
  1. bump to 2.0.0

  2. define keychain-refresh-enviroment first

    that is: before the boring keychain-read-file.  Don't waste
    peoples time, put the real thing right in front of their eyes.
  3. add variable keychain-directory

    Remove the variables keychain-ssh-file and keychain-gpg-file replacing
    them with variable keychain-directory.  keychain actually allows
    changing the directory but not the filenames of files stored within.
    Also I cannot find a way to only create files for the shell actually
    being used (one of sh, csh or fish).  So we can continue to assume
    that the sh-variants exist and don't have to let the user select
  4. add myself as maintainer

    Also modify header to my liking.
    Commentary still has to be improved.
  5. untabify and remove trailing whitespace

    Also enforce use of spaces for indention.
Commits on Feb 16, 2011
  1. change doc-strings to be more like they usually are

    No need to say in doc-string what the default value is, that information
    is available as, well the value as long as the user does not change it.
    And if he changes it then he likely had a look at the default value and
    did not like it.
  2. keychain-read-file: reimplement

    This is based on function custom-save-all which has to do
    something similar.
  3. update keychain homepage url

  4. keychain-refresh-environment: allow ssh/gpg agent not to be used

    This adds lot's of contitionals and certainly can be improved but at
    least this fn now does not fail if the user is not using both ssh-agent
    and gpg-agent.  Also cleanup doc-string which was a mess.
  5. rename refresh-keychain-environment to keychain-refresh-environment

    This is they way you are supposed to do it (I had things like that corrected
    by other people in my libraries too :-).  Also fix Commentary.
  6. rename read-file to keychain-read-file

    instead of only defining it if not already define.  If read-file is part
    of Emacs then it will likely be different than yours anyway and your
    library will break if you use it, let's be prepared for that and also
    be nice and use library prefix like you ought to.
    Also cleanup function a bit while we are at it.
  7. define variables at top-level

    if a variable is already set when defvar is evaluated then it does
    nothing anyway.
Commits on Aug 16, 2010
  1. updates

    anybody authored committed
Commits on Aug 30, 2009
  1. initial import

    anybody authored committed
Something went wrong with that request. Please try again.