add shell initialisation files
authorDavid Adam <[email protected]>
Sun, 12 Apr 2015 16:13:12 +0000 (00:13 +0800)
committerDavid Adam <[email protected]>
Sun, 12 Apr 2015 16:13:12 +0000 (00:13 +0800)
bash_profile.uccpass [new file with mode: 0644]
bashrc.uccpass [new file with mode: 0644]
config.uccpass.fish [new file with mode: 0644]
zprofile.uccpass [new file with mode: 0644]
zshenv.uccpass [new file with mode: 0644]

diff --git a/bash_profile.uccpass b/bash_profile.uccpass
new file mode 100644 (file)
index 0000000..539887a
--- /dev/null
@@ -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 (file)
index 0000000..0d44f9e
--- /dev/null
@@ -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 (file)
index 0000000..4bb58aa
--- /dev/null
@@ -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 (file)
index 0000000..2f0f19b
--- /dev/null
@@ -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 (file)
index 0000000..0d44f9e
--- /dev/null
@@ -0,0 +1,2 @@
+[ -z "$HOSTNAME" ] && HOSTNAME=`uname -n`
+[ -f $HOME/.keychain/$HOSTNAME-sh-gpg ] && . $HOME/.keychain/$HOSTNAME-sh-gpg

UCC git Repository :: git.ucc.asn.au