summaryrefslogtreecommitdiff
path: root/themes/CodeIT/.devcontainer/.zprofile
diff options
context:
space:
mode:
Diffstat (limited to 'themes/CodeIT/.devcontainer/.zprofile')
-rw-r--r--themes/CodeIT/.devcontainer/.zprofile9
1 files changed, 9 insertions, 0 deletions
diff --git a/themes/CodeIT/.devcontainer/.zprofile b/themes/CodeIT/.devcontainer/.zprofile
new file mode 100644
index 0000000..5f04837
--- /dev/null
+++ b/themes/CodeIT/.devcontainer/.zprofile
@@ -0,0 +1,9 @@
+if [ -z "$SSH_AUTH_SOCK" ]; then
+ # Check for a currently running instance of the agent
+ RUNNING_AGENT="`ps -ax | grep 'ssh-agent -s' | grep -v grep | wc -l | tr -d '[:space:]'`"
+ if [ "$RUNNING_AGENT" = "0" ]; then
+ # Launch a new instance of the agent
+ ssh-agent -s &> .ssh/ssh-agent
+ fi
+ eval `cat .ssh/ssh-agent`
+fi \ No newline at end of file