]> git.wh0rd.org Git - home.git/commitdiff
profile.d: use POSIX shell compliant style
authorMike Frysinger <vapier@gentoo.org>
Sun, 2 Feb 2014 02:22:23 +0000 (21:22 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sun, 2 Feb 2014 02:22:50 +0000 (21:22 -0500)
.profile.d/ROOT-bash_profile
.profile.d/keychain.sh

index 86795d706e4668999e7a6704a34897bcc8eb7452..d1fb79b19cd44dddc744533d8f5a4868f8ce52f2 100644 (file)
@@ -1 +1 @@
-source ~/.bashrc
+. ~/.bashrc
index 436d21fad7d1c1c93cd28b629b0b970d7039596e..89345492cc49c4fcf0ebdbe9336e4f7aa0695ff4 100644 (file)
@@ -1,4 +1,5 @@
-if type -P keychain >/dev/null ; then
-       [ -e ~/.keychain/${HOSTNAME}-sh ] && source ~/.keychain/${HOSTNAME}-sh
-       [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && source ~/.keychain/${HOSTNAME}-sh-gpg
+if type keychain >/dev/null 2>&1 ; then
+       : ${HOSTNAME:=$(hostname)}
+       [ -e ~/.keychain/${HOSTNAME}-sh ] && . ~/.keychain/${HOSTNAME}-sh
+       [ -e ~/.keychain/${HOSTNAME}-sh-gpg ] && . ~/.keychain/${HOSTNAME}-sh-gpg
 fi