On 2011/12/27 07:07, Stefan Sperling wrote:
> CVSROOT:      /cvs
> Module name:  src
> Changes by:   s...@cvs.openbsd.org    2011/12/27 07:07:20
> 
> Modified files:
>       usr.bin/tmux   : cmd.c tmux.1 
> 
> Log message:
> Allow $HOME as default-path in tmux.conf so the same config file can be used
> on different machines regardless of where the user's home directory is.
> ok nicm
> 

Btw, set -g default-path "$HOME" (with quotes) worked even before
the cmd.c change.

I tried this as an alternative to the new working-directory behaviour
but didn't like it much (the initial tmux window stayed in cwd from
where tmux was started, but subsequent windows open in $HOME).

If you prefer the previous behaviour (as I do), you can also use
"set -g default-path ." - is it worth documenting this?


Index: tmux.1
===================================================================
RCS file: /cvs/src/usr.bin/tmux/tmux.1,v
retrieving revision 1.259
diff -u -p -r1.259 tmux.1
--- tmux.1      27 Dec 2011 14:07:20 -0000      1.259
+++ tmux.1      27 Dec 2011 15:13:24 -0000
@@ -1850,6 +1850,11 @@ If
 is "$HOME" or "~", the value of the
 .Ev HOME
 environment variable is used.
+If
+.Ar path
+is ".", the working directory when
+.Nm
+was started is used.
 .It Ic default-shell Ar path
 Specify the default shell.
 This is used as the login shell for new windows when the

Reply via email to