Commit | Line | Data |
---|---|---|
59f0d218 FF |
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 | |
4 | @@ -23,6 +23,7 @@ | |
5 | #include <stdlib.h> | |
6 | #include <unistd.h> | |
7 | #include <time.h> | |
8 | +#include <sys/stat.h> | |
9 | ||
10 | #include "tmux.h" | |
11 | ||
12 | @@ -245,8 +246,10 @@ | |
13 | server_fill_environ(s, &env); | |
14 | ||
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)) { | |
19 | + struct stat st; | |
20 | + shell = (stat("@TERMUX_PREFIX@/home/.aterm/shell", &st) == 0) ? "@TERMUX_PREFIX@/home/.aterm/shell" : _PATH_BSHELL; | |
21 | + } | |
22 | ||
23 | hlimit = options_get_number(&s->options, "history-limit"); | |
24 | w = window_create( |