That completely solves my problem. Thanks for the idea!
On Tue, Jan 29, 2013 at 9:05 AM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> Detaching would not be easy to achieve. Why don't you just turn the
> status line off and change the prefix? So a script aliased to ssh,
> something like:
>
> #!/bin/sh
>
> tmux set status off
> tmux set prefix ^P
> ssh "$@"
> tmux set -u prefix
> tmux set -u status
>
>
>
> On Tue, Jan 29, 2013 at 08:21:13AM -0300, Thiago Padilha wrote:
> > Hello
> > I'm using tmux both locally and on my remote server, but I would
> prefer
> > not to use the server session nested inside my local tmux session.
> > I would like to automatically detach my local tmux session whenever I
> > enter the ssh command, and reattach to it when I disconnect from the
> > server.
> > Anone done something like this before?
> > Thanks.
>
> >
> ------------------------------------------------------------------------------
> > Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> > MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> > with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> > MVPs and experts. ON SALE this month only -- learn more at:
> > http://p.sf.net/sfu/learnnow-d2d
>
> > _______________________________________________
> > tmux-users mailing list
> > tmux-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/tmux-users
>
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users