Permalink
Browse files

Added credits to Joshua, resetting session name each time

  • Loading branch information...
stefanoverna committed Feb 23, 2012
1 parent 64ff4ec commit 1476751246772def205bd48100119bbb878dffa9
Showing with 3 additions and 1 deletion.
  1. +1 −1 README.mdown
  2. +2 −0 plugin/itermux.vim
View
@@ -10,7 +10,7 @@ For more information, see the documentation.
Dependencies Dependencies
------------ ------------
This plugin has no required dependencies, bu becomes really awesome when used This plugin has no required dependencies, but becomes really awesome when used
with rails.vim. It also makes the assumption that you're using iTerm on with rails.vim. It also makes the assumption that you're using iTerm on
a Mac platform. a Mac platform.
View
@@ -1,4 +1,5 @@
" itermux.vim - Turbo Ruby tests with iTerm " itermux.vim - Turbo Ruby tests with iTerm
" Author: Joshua Davey <http://joshuadavey.com/>
" Author: Stefano Verna <http://stefanoverna.com/> " Author: Stefano Verna <http://stefanoverna.com/>
" Version: 1.0 " Version: 1.0
@@ -74,6 +75,7 @@ function! Send_to_iTerm(command)
\ '-e "tell (first session whose name contains \"' . session . '\")"', \ '-e "tell (first session whose name contains \"' . session . '\")"',
\ '-e "set AppleScript''s text item delimiters to \" \""', \ '-e "set AppleScript''s text item delimiters to \" \""',
\ '-e "write text (argv as text)"', \ '-e "write text (argv as text)"',
\ '-e "set the name to \"' . session . '\""',
\ '-e "end tell"', \ '-e "end tell"',
\ '-e "end tell"', \ '-e "end tell"',
\ '-e "end tell"', \ '-e "end tell"',

0 comments on commit 1476751

Please sign in to comment.