summary refs log tree commit diff stats
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.config/zsh/.zshrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc
index c8f951bf..e671e225 100644
--- a/zsh/.config/zsh/.zshrc
+++ b/zsh/.config/zsh/.zshrc
@@ -21,6 +21,9 @@ _emacs_function () {
 projectile () {
   _emacs_function projectile-switch-project-by-name ${1:-$PWD}
 }
+set-emacs-ssh-agent () {
+  emacsclient -e "(setenv \"SSH_AUTH_SOCK\" \"$SSH_AUTH_SOCK\")"
+}
 yarn () {
   PREFIX=$HOME/.local command yarn "$@"
 }