From 739066b4c2ab05f5a6ee1034ee41f408da167b21 Mon Sep 17 00:00:00 2001 From: hugues Date: Mon, 3 Apr 2006 20:44:55 +0000 Subject: Utilisation de keychain au login Ajout du support GnuPG agent git-svn-id: svn+ssh://hugues@maison/opt/svn/private/hugues@216 a0e5b806-a6f9-0310-978d-cbce73f8a913 --- .zlogin | 4 +--- 00_Exports.zsh | 5 ++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.zlogin b/.zlogin index 123d536..4462ac9 100644 --- a/.zlogin +++ b/.zlogin @@ -1,12 +1,10 @@ for i in {1..$COLUMNS} ; do echo -n "_" ; done echo -#/usr/games/fortune\ -# ~/bdd/fortunes/fr\ -#| cowsay calendar -A0 | sed "s/^\(......\*.*\)/\1/" for i in {1..$COLUMNS} ; do echo -n "_" ; done echo "" +keychain --quiet --quick id_dsa 593F1F92 diff --git a/00_Exports.zsh b/00_Exports.zsh index 1649fbf..711599d 100644 --- a/00_Exports.zsh +++ b/00_Exports.zsh @@ -9,9 +9,8 @@ export PRINTER=Berthe export TIME_STYLE="+%Y-%b-%d %H:%M" export TZ="Europe/Paris" KEYCHAIN=~/.keychain/$(hostname)-sh -if ( [ -f $KEYCHAIN ] ); then - source $KEYCHAIN -fi +[ -f $KEYCHAIN ] && source $KEYCHAIN +[ -f ${KEYCHAIN}-gpg ] && source ${KEYCHAIN}-gpg export PATH=$PATH:~/.pr0n # Set locales only if they are undefined export LC_ALL=${LC_ALL:-fr_FR.UTF-8} -- cgit v1.2.3