aboutsummaryrefslogtreecommitdiff
path: root/macos.local/.flake/home/programs/zsh/profile-extra.sh.org
diff options
context:
space:
mode:
authorjjanzen <jjanzen@jjanzen.ca>2025-01-08 17:24:21 -0600
committerjjanzen <jjanzen@jjanzen.ca>2025-01-08 17:24:21 -0600
commita75b69b88f967e6271d75a1bc122da0b2e4eeece (patch)
tree20b7fb1bec30f68e61846c45a481bee174f4af9f /macos.local/.flake/home/programs/zsh/profile-extra.sh.org
parenta1cbc273fb92c69ea1b8534f6ef6064b5da40e31 (diff)
system changes
Diffstat (limited to 'macos.local/.flake/home/programs/zsh/profile-extra.sh.org')
-rw-r--r--macos.local/.flake/home/programs/zsh/profile-extra.sh.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/macos.local/.flake/home/programs/zsh/profile-extra.sh.org b/macos.local/.flake/home/programs/zsh/profile-extra.sh.org
new file mode 100644
index 0000000..64457ed
--- /dev/null
+++ b/macos.local/.flake/home/programs/zsh/profile-extra.sh.org
@@ -0,0 +1,10 @@
+#+title: Profile Extra Code
+
+Enable =ssh-agent= at login.
+#+begin_src sh
+ if [ ! -S ~/.ssh/ssh_auth_sock ]; then
+ eval `ssh-agent` > /dev/null
+ ln -sf "$SSH_AUTH_SOCK" ~/.ssh/ssh_auth_sock
+ fi
+ export SSH_AUTH_SOCK=~/.ssh/ssh_auth_sock
+#+end_src