Re: [dev] Holding st after a command has completed

From: Ivan \ <rambiusparkisanius_AT_gmail.com>
Date: Sun, 14 Apr 2019 08:35:29 +0300

Hello,

On Sun, Apr 14, 2019 at 4:28 AM Alexander Krotov <ilabdsf_AT_gmail.com> wrote:
>
> On 4/14/19 3:24 AM, Ivan "Rambius" Ivanov wrote:
> > Hello,
> >
> > The st terminal has -e option that executes a specific command instead
> > of the shell. However, st closes immediately after the command has
> > completed. Is it possible to hold the st's window after the command
> > has finished? That is similar to xterm's -hold command.
>
> You can throw the following script ("hold.sh") into your $PATH:
>
> #!/bin/sh
> $_AT_
> read x
>
> Then run, for example, "st -e hold.sh ls"

Thank you, that worked.

Regards
rambius


-- 
Tangra Mega Rock: http://www.radiotangra.com
Received on Sun Apr 14 2019 - 07:35:29 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 14 2019 - 08:12:08 CEST