Revision: 2764
http://tmux.svn.sourceforge.net/tmux/?rev=2764&view=rev
Author: tcunha
Date: 2012-04-10 09:49:04 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Sync OpenBSD patchset 1083:
Add pane_current_path format, suggested by Mikolaj Kucharski.
Modified Paths:
--------------
trunk/format.c
trunk/tmux.1
Modified: trunk/format.c
===================================================================
--- trunk/format.c 2012-04-10 09:45:41 UTC (rev 2763)
+++ trunk/format.c 2012-04-10 09:49:04 UTC (rev 2764)
@@ -389,6 +389,7 @@
format_add(ft, "pane_start_command", "%s", wp->cmd);
if (wp->cwd != NULL)
format_add(ft, "pane_start_path", "%s", wp->cwd);
+ format_add(ft, "pane_current_path", "%s", get_proc_cwd(wp->pid));
format_add(ft, "pane_pid", "%ld", (long) wp->pid);
format_add(ft, "pane_tty", "%s", wp->tty);
}
Modified: trunk/tmux.1
===================================================================
--- trunk/tmux.1 2012-04-10 09:45:41 UTC (rev 2763)
+++ trunk/tmux.1 2012-04-10 09:49:04 UTC (rev 2764)
@@ -2783,6 +2783,7 @@
.It Li "host" Ta "Hostname of local host"
.It Li "line" Ta "Line number in the list"
.It Li "pane_active" Ta "1 if active pane"
+.It Li "pane_current_path" Ta "Current path if available"
.It Li "pane_dead" Ta "1 if pane is dead"
.It Li "pane_height" Ta "Height of pane"
.It Li "pane_id" Ta "Unique pane ID"
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
tmux-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-cvs