]> git.rmz.io Git - dotfiles.git/blob - vim/plugin/update_tmux_env.vim
vim: configure comments for taskrc files
[dotfiles.git] / vim / plugin / update_tmux_env.vim
1 function! <SID>UpdateTmuxEnv()
2 let env = trim(system("tmux showenv SSH_AUTH_SOCK"))
3 let es = split(env, "=")
4 call setenv(es[0], es[1])
5 endfunction
6
7 command! -nargs=0 UpdateTmuxEnv call <SID>UpdateTmuxEnv()