Run zsh when starting screen
authorDarshaka Pathirana <dpat@syn-net.org>
Sun, 21 May 2017 17:56:58 +0000 (19:56 +0200)
committerMichael Prokop <mika@grml.org>
Wed, 24 May 2017 06:35:53 +0000 (08:35 +0200)
When starting GNU/screen via systemd the SHELL varible is empty whereas
SHELL=/bin/zsh when starting screen via grml-runtty.

If we can assume that zsh is installed on Grml then this solution is ok.
If not, we should address that in the run-screen script with something like:

  SHELL=/bin/sh
  [ -x /bin/zsh ] && SHELL=/bin/zsh

  # now run screen with config

    if [ `id -u` = 0 ] ; then
      exec screen -U -c /etc/grml/screenrc -s $SHELL
  [snip]

(partly) fixes grml/grml#14


No differences found