st
simple terminal
git clone https://9o.is/git/st.git
commit d6dfe858b9f878f31edec52c4159cb3e8e57c88f parent d8201ae830e3aea419433e80fa17a1f357ba0d43 Author: Quentin Rameau <quinq@fifth.space> Date: Sat, 11 Apr 2020 12:09:20 +0200 Launch scroll program with the default shell Diffstat:
| M | st.c | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/st.c b/st.c @@ -682,9 +682,12 @@ execsh(char *cmd, char **args) if (args) { prog = args[0]; arg = NULL; - } else if (scroll || utmp) { - prog = scroll ? scroll : utmp; - arg = scroll ? utmp : NULL; + } else if (scroll) { + prog = scroll; + arg = utmp ? utmp : sh; + } else if (utmp) { + prog = utmp; + arg = NULL; } else { prog = sh; arg = NULL;