Skip to content

Commit

Permalink
Show an error if :Tmuxline is not run in tmux
Browse files Browse the repository at this point in the history
Refs #33, #25
  • Loading branch information
edkolev committed Nov 5, 2014
1 parent 3204c95 commit 1e638ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/tmuxline.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
" Copyright (c) 2013-2014 Evgeni Kolev

if !strlen($TMUX) || !executable('tmux')
command! -nargs=* Tmuxline echoerr ":Tmuxline should be executed in a tmux sesssion"
finish
endif

Expand Down

0 comments on commit 1e638ef

Please sign in to comment.