Go to file
Nicholas Marriott c1b9948525 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.
2011-12-09 16:37:29 +00:00
compat Can't use the same va_list twice, from Emanuele Giaquinta. 2011-07-25 09:56:43 +00:00
examples New commands and options. From Ben Boeckel. 2011-11-25 14:31:11 +00:00
tools Expand the Id keyword. 2011-07-09 09:42:33 +00:00
www Add manpage, also spaces->tabs. 2011-10-10 20:17:17 +00:00
CHANGES Changes for 1.5. 2011-07-09 16:01:55 +00:00
FAQ HP-UX should work now. 2011-07-09 09:46:15 +00:00
Makefile.am Add format.c to the list of sources. 2011-09-21 16:32:31 +00:00
NOTES Add build instructions based on diff from Frank Terbeck. 2011-09-15 12:58:39 +00:00
TODO +. 2011-11-15 23:12:28 +00:00
arguments.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
array.h Expand the Id keyword. 2011-07-09 09:42:33 +00:00
attributes.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
autogen.sh Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cfg.c Sync OpenBSD patchset 951: 2011-08-25 21:14:23 +00:00
client.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
clock.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-attach-session.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-bind-key.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-break-pane.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-capture-pane.c Sync OpenBSD patchset 956: 2011-09-21 16:34:34 +00:00
cmd-choose-buffer.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-choose-client.c Sync OpenBSD patchset 946: 2011-08-21 12:38:55 +00:00
cmd-choose-session.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-choose-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-clear-history.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-clock-mode.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-command-prompt.c Sync OpenBSD patchset 934: 2011-07-08 08:42:03 +00:00
cmd-confirm-before.c Sync OpenBSD patchset 934: 2011-07-08 08:42:03 +00:00
cmd-copy-mode.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-delete-buffer.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-detach-client.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-display-message.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-display-panes.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-find-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-has-session.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-if-shell.c Sync OpenBSD patchset 972: 2011-10-31 13:55:10 +00:00
cmd-join-pane.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-kill-pane.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-kill-server.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-kill-session.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-kill-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-link-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-list-buffers.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-list-clients.c Sync OpenBSD patchset 965: 2011-10-23 15:03:50 +00:00
cmd-list-commands.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-list-keys.c Sync OpenBSD patchset 935: 2011-07-08 16:44:06 +00:00
cmd-list-panes.c Sync OpenBSD patchset 980: 2011-11-25 13:31:56 +00:00
cmd-list-sessions.c Sync OpenBSD patchset 953: 2011-09-21 16:31:15 +00:00
cmd-list-windows.c Sync OpenBSD patchset 958: 2011-10-02 11:30:26 +00:00
cmd-list.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-load-buffer.c Sync OpenBSD patchset 968: 2011-10-23 15:08:58 +00:00
cmd-lock-server.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-move-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-new-session.c Sync OpenBSD patchset 967: 2011-10-23 15:05:20 +00:00
cmd-new-window.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
cmd-paste-buffer.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-pipe-pane.c Sync OpenBSD patchset 973: 2011-10-31 13:55:43 +00:00
cmd-refresh-client.c Sync OpenBSD patchset 961: 2011-10-02 11:33:14 +00:00
cmd-rename-session.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-rename-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-resize-pane.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-respawn-pane.c Sync OpenBSD patchset 979: 2011-11-25 13:30:45 +00:00
cmd-respawn-window.c Sync OpenBSD patchset 931: 2011-07-05 10:42:09 +00:00
cmd-rotate-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-run-shell.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-save-buffer.c Sync OpenBSD patchset 968: 2011-10-23 15:08:58 +00:00
cmd-select-layout.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-select-pane.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-select-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-send-keys.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-send-prefix.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-server-info.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-set-buffer.c Sync OpenBSD patchset 964: 2011-10-23 15:02:20 +00:00
cmd-set-environment.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-set-option.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-show-buffer.c Sync OpenBSD patchset 964: 2011-10-23 15:02:20 +00:00
cmd-show-environment.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-show-messages.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-show-options.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-source-file.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-split-window.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
cmd-start-server.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-string.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-suspend-client.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-swap-pane.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-swap-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd-switch-client.c Sync OpenBSD patchset 946: 2011-08-21 12:38:55 +00:00
cmd-unbind-key.c Sync OpenBSD patchset 944: 2011-08-21 12:36:43 +00:00
cmd-unlink-window.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
cmd.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
colour.c Sync OpenBSD patchset 948: 2011-08-25 21:11:16 +00:00
compat.h Typo. 2011-07-22 15:10:24 +00:00
configure.ac Use pkg-config for libevent. 2011-10-27 23:00:45 +00:00
environ.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
format.c Sync OpenBSD patchset 980: 2011-11-25 13:31:56 +00:00
grid-utf8.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
grid-view.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
grid.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
input-keys.c Sync OpenBSD patchset 941: 2011-08-04 17:05:35 +00:00
input.c Sync OpenBSD patchset 969: 2011-10-23 15:10:22 +00:00
job.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
key-bindings.c Sync OpenBSD patchset 928: 2011-07-04 08:22:37 +00:00
key-string.c Sync OpenBSD patchset 970: 2011-10-23 15:11:09 +00:00
layout-custom.c PatchSet 923 2011-06-23 19:21:26 +00:00
layout-set.c Sync OpenBSD patchset 978: 2011-11-10 21:41:37 +00:00
layout.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
log.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
mode-key.c Sync OpenBSD patchset 986: 2011-12-06 18:50:26 +00:00
names.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
options-table.c Sync OpenBSD patchset 981: 2011-11-25 13:33:04 +00:00
options.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
osdep-aix.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-darwin.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-dragonfly.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-freebsd.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-hpux.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-linux.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-netbsd.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-openbsd.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-sunos.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
osdep-unknown.c Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
paste.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
resize.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
screen-redraw.c Sync OpenBSD patchset 979: 2011-11-25 13:30:45 +00:00
screen-write.c Sync OpenBSD patchset 969: 2011-10-23 15:10:22 +00:00
screen.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
server-client.c Sync OpenBSD patchset 947: 2011-08-21 12:39:34 +00:00
server-fn.c Sync OpenBSD patchset 969: 2011-10-23 15:10:22 +00:00
server-window.c Sync OpenBSD patchset 949: 2011-08-25 21:12:52 +00:00
server.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
session.c Sync OpenBSD patchset 943: 2011-08-21 12:35:47 +00:00
signal.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
status.c Sync OpenBSD patchset 983: 2011-12-06 18:47:14 +00:00
tmux.1 Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
tmux.c Sync OpenBSD patchset 968: 2011-10-23 15:08:58 +00:00
tmux.h Change the way the working directory for new processes is discovered. If 2011-12-09 16:37:29 +00:00
tty-acs.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
tty-keys.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
tty-term.c Sync OpenBSD patchset 985: 2011-12-06 18:48:45 +00:00
tty.c Sync OpenBSD patchset 949: 2011-08-25 21:12:52 +00:00
utf8.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
window-choose.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
window-clock.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
window-copy.c Sync OpenBSD patchset 986: 2011-12-06 18:50:26 +00:00
window.c Sync OpenBSD patchset 979: 2011-11-25 13:30:45 +00:00
xmalloc.c Expand the Id keyword. 2011-07-09 09:42:33 +00:00
xterm-keys.c Sync OpenBSD patchset 925: 2011-07-03 21:50:27 +00:00