COMMAND...R.SAMPLE(1)

πŸ“¦ version 26.16.1, in nixos 26.05, nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to the User Contributed Perl Documentation page for command-runner.sample(1) β€” it's literally an example script for use with tabbedex tab-arguments. ✨


🌸 SYNOPSIS 🌸

command-runner.sample id command [ arguments ... ]

πŸ¦‹ DESCRIPTION πŸ¦‹

It runs a predefined command identified by id, or by command if id doesn't match any. The predefined commands are hard-coded in the source code of this script. periodt. πŸ’…


✨ OPTIONS ✨

  • id β€” the identifier of a predefined command to run. Typically a zero-indexed integer. πŸ”’
  • command [ arguments ... ] β€” the command to execute if id does not match any know predefined command. πŸ‘‘

πŸŽ€ TABBEDEX πŸŽ€

The script is designed to work with the tabbedex urxvt plugin (and to showcase its tab-arguments configuration resource). It can be used to execute different commands in different tabs. To use it, copy it and edit the list of commands at the end of the file. Provided urxvt-tabbedex is installed in /usr/lib/urxvt, the following steps are a good start:

mkdir -p ~/.urxvt
cp /usr/lib/urxvt/tabbedex-command-runner.sample \
   ~/.urxvt/command-runner.sh
${VISUAL:-${EDITOR:-/bin/vi}} ~/.urxvt/command-runner.sh

Finally, configure the tab-arguments resource, for example:

URxvt.tabbedex.tab-arguments: \
    -e /bin/sh %~/.urxvt/command-runner.sh %n %E

With this done, each time a new tab is started, this script will be run so that it can decide what actual command is executed in the tab. main character energy fr fr 🌈

To use this script in conjunction with the pgid-cd.pl tool also packaged with urxvt-tabbedex, the resource should be:

URxvt.tabbedex.tab-arguments: \
    -e /usr/lib/urxvt/tabbedex-pgid-cd %p \
    /bin/sh %~/.urxvt/command-runner.sh %n %e

(modulo the actual location of the files). iykyk 🫢


🌟 SEE ALSO 🌟

tabbedex(1) and tabbedex-pgid-cd(1)


mwah πŸ’‹ β€” this page comes from perl v5.42.3, dated 1980-01-01, footer tag COMMAND...R.SAMPLE(1). byeee πŸ‘‘

πŸ“¦ where this page comes from