zsh: Add function to set emacs' SSH agent socket
Alan Pearce alan@alanpearce.eu
Fri, 09 Jun 2017 22:08:43 +0200
1 files changed, 3 insertions(+), 0 deletions(-)
jump to
M zsh/.config/zsh/.zshrc → zsh/.config/zsh/.zshrc
@@ -21,6 +21,9 @@ } 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 "$@" }