Skip to content

Commit

Permalink
use the current terminal if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Dejean committed Feb 28, 2011
1 parent 40d33e8 commit 8cedf92
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions Commands/Attach to Session.tmCommand
Expand Up @@ -11,9 +11,14 @@ if [ -n "$SESSION_STARTED" ]
then
osascript -e "tell application \"iTerm\"
activate
set myterm to (make new terminal)
tell myterm
launch session \"Lisp Interaction\"
if ((count of every terminal) is greater than 0) then
set myTerminal to last terminal
else
set myTerminal to (make new terminal)
end if
tell myTerminal
launch session \"Default\"
tell last session
write text \"tmux attach-session -t $CL_SESSION_NAME\"
end tell
Expand Down

0 comments on commit 8cedf92

Please sign in to comment.