From c1b994852594b23b7443e01e05257c991684ba4e Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 9 Dec 2011 16:37:29 +0000 Subject: Change the way the working directory for new processes is discovered. If default-path isn't empty, it is used. Otherwise: 1) If tmux neww is run from the command line, the working directory of the client is used. 2) Otherwise use some platform specific code to retrieve the current working directory of the process in the active pane. 3) If that fails, the directory where the session was created is used. Idea and support code, Linux, Solaris, FreeBSD bits by Romain Francoise, OpenBSD bits by me. --- osdep-darwin.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'osdep-darwin.c') diff --git a/osdep-darwin.c b/osdep-darwin.c index 229a4931..c5820df6 100644 --- a/osdep-darwin.c +++ b/osdep-darwin.c @@ -25,6 +25,7 @@ #include char *osdep_get_name(int, char *); +char *osdep_get_cwd(pid_t); struct event_base *osdep_event_init(void); #define unused __attribute__ ((unused)) @@ -48,6 +49,12 @@ osdep_get_name(int fd, unused char *tty) return (strdup(kp.kp_proc.p_comm)); } +char * +osdep_get_cwd(pid_t pid) +{ + return (NULL); +} + struct event_base * osdep_event_init(void) { -- cgit