From ca108589fb986b135a6ff5a6290be6af66c783a9 Mon Sep 17 00:00:00 2001 From: David Adam Date: Mon, 13 Apr 2015 00:13:12 +0800 Subject: [PATCH] add shell initialisation files --- bash_profile.uccpass | 3 +++ bashrc.uccpass | 2 ++ config.uccpass.fish | 5 +++++ zprofile.uccpass | 3 +++ zshenv.uccpass | 2 ++ 5 files changed, 15 insertions(+) create mode 100644 bash_profile.uccpass create mode 100644 bashrc.uccpass create mode 100644 config.uccpass.fish create mode 100644 zprofile.uccpass create mode 100644 zshenv.uccpass 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 -- 2.20.1