From 68ddcacf2a92a957a935ef2ef797e96229681193 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Fri, 10 Jan 2025 21:16:59 +0000 Subject: [PATCH] Add a script to run a program and then zsh -i --- screen-shell | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 screen-shell diff --git a/screen-shell b/screen-shell new file mode 100755 index 0000000..569c614 --- /dev/null +++ b/screen-shell @@ -0,0 +1,9 @@ +#!/bin/zsh +# +# Executes all the given arguments and then starts an interactive shell. +# Intended to be used in .screenrc to run a command and not close the +# screen when it exits. + +"$@" +echo "$@ exited with $?, starting zsh..." +zsh -i