]> git.wh0rd.org Git - home.git/commitdiff
use hostname for keychain fragments
authorMike Frysinger <vapier@gentoo.org>
Fri, 17 Aug 2012 21:26:23 +0000 (17:26 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 17 Aug 2012 21:26:23 +0000 (17:26 -0400)
.profile.d/keychain.sh

index 920035b3be2dd626f71400fadff971ca14ed96ba..436d21fad7d1c1c93cd28b629b0b970d7039596e 100644 (file)
@@ -1,4 +1,4 @@
 if type -P keychain >/dev/null ; then
-       [ -e ~/.keychain/vapier-sh ] && source ~/.keychain/vapier-sh
-       [ -e ~/.keychain/vapier-sh-gpg ] && source ~/.keychain/vapier-sh-gpg
+       [ -e ~/.keychain/${HOSTNAME}-sh ] && source ~/.keychain/${HOSTNAME}-sh
+       [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && source ~/.keychain/${HOSTNAME}-sh-gpg
 fi