]> git.rmz.io Git - dotfiles.git/blob - zsh/lib/zellij.zsh
zsh: update SSH_AUTH_SOCK whithin zellij
[dotfiles.git] / zsh / lib / zellij.zsh
1 if [[ -n "$ZELLIJ" ]]; then
2 function update-env {
3 # set SSH_AUTH_SOCK to latest socket
4 export SSH_AUTH_SOCK=$(realpath /tmp/ssh-XXXX*/*(om[1]))
5 }
6 preexec_functions+=(update-env)
7 fi