On 1/18/11 4:28 PM, Nicholas Marriott wrote: > suppose could update s->cwd on attach but it doesn't do much good if you > switch your client plus if you attach somewhere else then suddenly your > cwd is gone > > better might be to use the cmd client cwd, eg try this (untested)
Doesn't seem to work. Any new windows get cwd = / That said, what is 's'? (Sorry, haven't looked at the code yet.) Is it a per-session data structure? In that case, it seems you could gather the value of "cwd" when the session is created and leave it unmodified for the rest of the session[*]. Then, when a child window is created within the session, reuse the s->cwd of the session. Thanks for the quick reply! * Optionally have a command to modify the cwd of a session on purpose. ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users