From f659263a26f84c8f4540e3ede0b7eba6cad00e2a Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 9 Jun 2017 22:08:43 +0200 Subject: zsh: Add function to set emacs' SSH agent socket --- zsh/.config/zsh/.zshrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index c8f951b..e671e22 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 "$@" } -- cgit 1.4.1