Skip to content

Commit

Permalink
New configuration option g:VimuxSocketPath
Browse files Browse the repository at this point in the history
It allows to specify tmux socket path
  • Loading branch information
jajm committed Apr 14, 2021
1 parent ee3075a commit a32acb1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 10 additions & 0 deletions doc/vimux.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,5 +447,15 @@ previously-run commands in VimuxPromptCommand.
<
Default: 1

------------------------------------------------------------------------------
*VimuxSocketPath*
4.13 g:VimuxSocketPath~

The path to the tmux socket path. See tmux option `-S`
>
let g:VimuxSocketPath = "/path/to/tmux-socket"
<
Default: ""

==============================================================================
vim:tw=78:ts=2:sw=2:expandtab:ft=help:norl:
8 changes: 6 additions & 2 deletions plugin/vimux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,14 @@ function! VimuxPromptCommand(...)
endfunction

function! VimuxTmux(arguments)
let command = VimuxOption('VimuxTmuxCommand')
if exists("g:VimuxSocketPath")
let command .= ' -S ' . g:VimuxSocketPath
endif
if VimuxOption('VimuxDebug')
echom VimuxOption('VimuxTmuxCommand').' '.a:arguments
echom command.' '.a:arguments
endif
return system(VimuxOption('VimuxTmuxCommand').' '.a:arguments)
return system(command.' '.a:arguments)
endfunction

function! s:tmuxSession()
Expand Down

0 comments on commit a32acb1

Please sign in to comment.