Skip to content

Commit

Permalink
Tweak keychain a little
Browse files Browse the repository at this point in the history
  • Loading branch information
dmedvinsky committed Jan 15, 2013
1 parent f455231 commit b695445
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions config.fish
Expand Up @@ -221,11 +221,10 @@ end
set -gx HOSTNAME (hostname)
if status --is-interactive
if which keychain >/dev/null 2>&1
keychain --nogui --quick --quiet
[ -e $HOME/.keychain/$HOSTNAME-fish ]; and . $HOME/.keychain/$HOSTNAME-fish
[ -e $HOME/.keychain/$HOSTNAME-fish-gpg ]; and . $HOME/.keychain/$HOSTNAME-fish-gpg
# set SSH_AGENT_PID
# set SSH_AUTH_SOCK
# eval (keychain --eval -Q --quiet)
set -lx KEYCHAIN_DIR "$HOME/.cache/keychain"
/usr/bin/keychain --dir "$KEYCHAIN_DIR" --nogui --quick --quiet --timeout 30
# /usr/bin/keychain --clear --dir "$KEYCHAIN_DIR" --nogui --quiet --timeout 30
[ -e "$KEYCHAIN_DIR/$HOSTNAME-fish" ]; and . "$KEYCHAIN_DIR/$HOSTNAME-fish"
[ -e "$KEYCHAIN_DIR/$HOSTNAME-fish-gpg" ]; and . "$KEYCHAIN_DIR/$HOSTNAME-fish-gpg"
end
end

0 comments on commit b695445

Please sign in to comment.