Re: Defining custom screen commands?
Gerald Young <[email protected]>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Organization | Azetti Networks |
| Message-ID | <[email protected]> |
Hi, 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 files. Here's the actual binding: bind ^L eval 'register z ":source /home/user/Screen/"' 'command' 'process z' Regards, Gerald 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 > screen-users-mXXj517/[email protected] > https://lists.gnu.org/mailman/listinfo/screen-users