diff options
author | Alan Pearce | 2017-06-09 22:08:43 +0200 |
---|---|---|
committer | Alan Pearce | 2017-06-09 22:08:43 +0200 |
commit | f659263a26f84c8f4540e3ede0b7eba6cad00e2a (patch) | |
tree | 8a1a3e2d25871ea2dcf589aad09fdde8f3dee679 | |
parent | a67a49386bcbef7ad83706e41dc8842c4b0bac58 (diff) | |
download | nixfiles-f659263a26f84c8f4540e3ede0b7eba6cad00e2a.tar.lz nixfiles-f659263a26f84c8f4540e3ede0b7eba6cad00e2a.tar.zst nixfiles-f659263a26f84c8f4540e3ede0b7eba6cad00e2a.zip |
zsh: Add function to set emacs' SSH agent socket
-rw-r--r-- | zsh/.config/zsh/.zshrc | 3 |
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 "$@" } |