[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining custom screen commands?

From: Jim Mahood
Subject: Re: Defining custom screen commands?
Date: Thu, 31 Jul 2014 23:32:08 -0400

Nice solution combined with tab completion.  :-)  Thanks Gerald!

On Jul 31, 2014 12:45 PM, "Gerald Young" <address@hidden> wrote:

What I do is have a keystroke binding which types in this:
C-a :source /home/user/Screen/

But it doesn't actually submit the command. Then I can manually type in the
command I want to run, like so:
C-a :source /home/user/Screen/command

And hit enter to execute. The command is actually a screen script stored at
that location. So adding new commands is matter just of adding new script

Here's the actual binding:
bind ^L eval 'register z ":source /home/user/Screen/"' 'command' 'process z'


On Thursday, July 31, 2014 10:35:31 AM Dun Peal wrote:
> Folks,
> There's a sequence of screen operations that I execute every once in a
> while. I can use `bind` and `eval` to execute it by keystroke, but it
> is not used commonly enough to justify a keystroke binding.
> Is there a way to define it such that I can execute it by running a
> custom command on the `C-a :` command line?
> So for example, I'd define it as custom command `foo`, such that when
> I hit `C-a :` then type `foo` and press enter, the sequence of screen
> commands gets executed.
> Thanks, D.
> _______________________________________________
> screen-users mailing list
> address@hidden

screen-users mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]