Skip to content

Commit

Permalink
Set window title in tmux panes
Browse files Browse the repository at this point in the history
What is up with that hostname default?  tmux is a poster child for bad
taste.
  • Loading branch information
tpope committed Feb 17, 2016
1 parent 6a197e5 commit 8c68969
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/dispatch/tmux.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ function! dispatch#tmux#handle(request) abort
let command .= ' -d'
endif
let command .= ' ' . shellescape('exec ' . dispatch#isolate(
\ ['TMUX', 'TMUX_PANE'], dispatch#prepare_start(a:request)))
\ ['TMUX', 'TMUX_PANE'],
\ dispatch#set_title(a:request),
\ dispatch#prepare_start(a:request)))
call system(command)
return 1
endif
Expand All @@ -37,6 +39,7 @@ function! dispatch#tmux#make(request) abort
\ && a:request.format !~# '%\\[er]'
let session = get(g:, 'tmux_session', '')
let script = dispatch#isolate(['TMUX', 'TMUX_PANE'],
\ dispatch#set_title(a:request),
\ call('dispatch#prepare_make', [a:request] +
\ (pipepane ? [a:request.expanded . '; echo $? > ' . a:request.file . '.complete'] : [])))

Expand Down

0 comments on commit 8c68969

Please sign in to comment.