X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/ee4513f895cef90788b5f6d263a380b2e5d7ecbe..a1ee14f849f1f97ad2b68e598110218524a201aa:/vim/plugin/update_tmux_env.vim diff --git a/vim/plugin/update_tmux_env.vim b/vim/plugin/update_tmux_env.vim new file mode 100644 index 0000000..01df515 --- /dev/null +++ b/vim/plugin/update_tmux_env.vim @@ -0,0 +1,7 @@ +function! UpdateTmuxEnv() + let env = trim(system("tmux showenv SSH_AUTH_SOCK")) + let es = split(env, "=") + call setenv(es[0], es[1]) +endfunction + +command! -nargs=0 UpdateTmuxEnv call UpdateTmuxEnv()