From: David Adam Date: Sun, 12 Apr 2015 16:13:12 +0000 (+0800) Subject: add shell initialisation files X-Git-Url: https://git.ucc.asn.au/?p=zanchey%2Fuccpass.git;a=commitdiff_plain;h=ca108589fb986b135a6ff5a6290be6af66c783a9 add shell initialisation files --- diff --git a/bash_profile.uccpass b/bash_profile.uccpass new file mode 100644 index 0000000..539887a --- /dev/null +++ b/bash_profile.uccpass @@ -0,0 +1,3 @@ +if type keychain >-; then + eval `keychain --clear --quiet --agents gpg --eval` +fi diff --git a/bashrc.uccpass b/bashrc.uccpass new file mode 100644 index 0000000..0d44f9e --- /dev/null +++ b/bashrc.uccpass @@ -0,0 +1,2 @@ +[ -z "$HOSTNAME" ] && HOSTNAME=`uname -n` +[ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] && . $HOME/.keychain/$HOSTNAME-sh-gpg diff --git a/config.uccpass.fish b/config.uccpass.fish new file mode 100644 index 0000000..4bb58aa --- /dev/null +++ b/config.uccpass.fish @@ -0,0 +1,5 @@ +if status --is-interactive + if type keychain >/dev/null + keychain --clear --quiet --agents gpg --eval | source + end +end diff --git a/zprofile.uccpass b/zprofile.uccpass new file mode 100644 index 0000000..2f0f19b --- /dev/null +++ b/zprofile.uccpass @@ -0,0 +1,3 @@ +if type keychain >-; then + keychain --clear --quiet --agents gpg +fi diff --git a/zshenv.uccpass b/zshenv.uccpass new file mode 100644 index 0000000..0d44f9e --- /dev/null +++ b/zshenv.uccpass @@ -0,0 +1,2 @@ +[ -z "$HOSTNAME" ] && HOSTNAME=`uname -n` +[ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] && . $HOME/.keychain/$HOSTNAME-sh-gpg