]> git.rmz.io Git - dotfiles.git/commit
vim: UpdateTmuxEnv function to import SSH_AUTH_SOCK
authorSamir Benmendil <me@rmz.io>
Fri, 11 Mar 2022 08:43:07 +0000 (08:43 +0000)
committerSamir Benmendil <me@rmz.io>
Fri, 11 Mar 2022 08:43:07 +0000 (08:43 +0000)
commita1ee14f849f1f97ad2b68e598110218524a201aa
tree97e9c2483a1f963f0dfa2083e31cae8eeb483b53
parentee4513f895cef90788b5f6d263a380b2e5d7ecbe
vim: UpdateTmuxEnv function to import SSH_AUTH_SOCK

When a new ssh session to an existing tmux session is opened the
ssh-agent forwarding will use a new SSH_AUTH_SOCK path. This env
variable is updated within the tmux session, but running applications
will need to update it themselves.

Really this should be done automatically.
vim/plugin/update_tmux_env.vim [new file with mode: 0644]