Skip to content

Instantly share code, notes, and snippets.

@graywh
Created May 3, 2012 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graywh/2586878 to your computer and use it in GitHub Desktop.
Save graywh/2586878 to your computer and use it in GitHub Desktop.
Disable cwd detection via /proc
--- tmux-1.6.orig/cmd.c
+++ tmux-1.6/cmd.c
@@ -1235,11 +1235,11 @@ cmd_get_default_path(struct cmd_ctx *ctx
if (*cwd == '\0') {
if (ctx->cmdclient != NULL && ctx->cmdclient->cwd != NULL)
return (ctx->cmdclient->cwd);
- if (ctx->curclient != NULL) {
- wp = s->curw->window->active;
- if ((cwd = osdep_get_cwd(wp->pid)) != NULL)
- return (cwd);
- }
+ /* if (ctx->curclient != NULL) { */
+ /* wp = s->curw->window->active; */
+ /* if ((cwd = osdep_get_cwd(wp->pid)) != NULL) */
+ /* return (cwd); */
+ /* } */
return (s->cwd);
}
return (cwd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment