1 diff -u -r ../tmux-1.8/session.c ./session.c
2 --- ../tmux-1.8/session.c 2013-03-26 20:22:31.000000000 +0100
3 +++ ./session.c 2014-02-13 18:55:45.000000000 +0100
13 server_fill_environ(s, &env);
15 shell = options_get_string(&s->options, "default-shell");
16 - if (*shell == '\0' || areshell(shell))
17 - shell = _PATH_BSHELL;
18 + if (*shell == '\0' || areshell(shell)) {
20 + shell = (stat("@TERMUX_PREFIX@/home/.aterm/shell", &st) == 0) ? "@TERMUX_PREFIX@/home/.aterm/shell" : _PATH_BSHELL;
23 hlimit = options_get_number(&s->options, "history-limit");