Use login shells by default.

This commit is contained in:
Nicholas Marriott 2009-06-25 15:44:03 +00:00
parent 6528d47ed8
commit 658659532a

4
tmux.c
View File

@ -1,4 +1,4 @@
/* $OpenBSD: tmux.c,v 1.2 2009/06/02 10:49:40 ray Exp $ */ /* $Id: tmux.c,v 1.125 2009-06-25 15:44:03 nicm Exp $ */
/* /*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -385,7 +385,7 @@ main(int argc, char **argv)
shell = _PATH_BSHELL; shell = _PATH_BSHELL;
} }
options_set_string( options_set_string(
&global_options, "default-command", "exec %s", shell); &global_options, "default-command", "exec %s -l", shell);
if (getcwd(cwd, sizeof cwd) == NULL) { if (getcwd(cwd, sizeof cwd) == NULL) {
log_warn("getcwd"); log_warn("getcwd");