### Example mprocs.yaml configuration Source: https://github.com/pvolok/dekit/blob/master/README.md Define processes to run using a YAML configuration file. This allows for more complex setups with environment variables and custom commands. ```yaml procs: nvim: cmd: ["nvim"] server: shell: "nodemon server.js" webpack: shell: "webpack serve" tests: shell: "jest -w" env: NODE_ENV: test ``` -------------------------------- ### Install mprocs with Homebrew Source: https://github.com/pvolok/dekit/blob/master/README.md Install mprocs on macOS or Linux using the Homebrew package manager. Ensure Homebrew is installed first. ```sh brew install mprocs ``` -------------------------------- ### Send an initial command on mprocs startup Source: https://github.com/pvolok/dekit/blob/master/README.md Use the --on-init argument to send an initial command to the current foreground process when mprocs starts. ```bash mprocs --on-init '{c: restart-all}' ``` -------------------------------- ### Install mprocs with npm Source: https://github.com/pvolok/dekit/blob/master/README.md Install the mprocs package globally using npm. This is a common method for Node.js-based tools. ```sh npm install -g mprocs ``` -------------------------------- ### Install mprocs with Scoop Source: https://github.com/pvolok/dekit/blob/master/README.md Install mprocs on Windows using the Scoop package manager. This is a convenient way to manage command-line tools on Windows. ```sh scoop install mprocs ``` -------------------------------- ### Add a process with a custom command and name Source: https://github.com/pvolok/dekit/blob/master/README.md Use the 'add-proc' command to start a new process. The 'name' field is optional. ```yaml {c: add-proc, cmd: "", name: ""} ``` -------------------------------- ### Install mprocs with yarn Source: https://github.com/pvolok/dekit/blob/master/README.md Install the mprocs package globally using yarn. This is an alternative to npm for managing Node.js packages. ```sh yarn global add mprocs ``` -------------------------------- ### Send a key to a process Source: https://github.com/pvolok/dekit/blob/master/README.md Use the 'send-key' command to send a key press to the current process. Examples include '' and ''. ```yaml {c: send-key, key: ""} ``` -------------------------------- ### Install mprocs from AUR Source: https://github.com/pvolok/dekit/blob/master/README.md Install mprocs on Arch Linux using the AUR helper 'yay'. Two variants are available: the binary and the source package. ```sh yay mprocs ``` ```sh yay mprocs-bin ``` -------------------------------- ### Install mprocs with Cargo Source: https://github.com/pvolok/dekit/blob/master/README.md Install mprocs using Cargo, the Rust package manager. This method is suitable for all platforms where Rust is supported. ```sh cargo install mprocs ``` -------------------------------- ### Run mprocs with Procfile Source: https://github.com/pvolok/dekit/blob/master/README.md Specify a Procfile to load process definitions using the --procfile argument. Autostart all processes with the --on-init '{c: restart-all}' option. ```sh mprocs --procfile ./Procfile.dev # default: Profile mprocs --procfile # autostart all processes mprocs --procfile --on-init '{c: restart-all}' ``` -------------------------------- ### Configure Keymaps in mprocs.yaml Source: https://github.com/pvolok/dekit/blob/master/README.md Define custom key bindings for process list and terminal focus in mprocs.yaml. Lower levels override previous bindings. Use `reset: true` to clear previous bindings. ```yaml keymap_procs: # keymap when process list is focused : { c: toggle-focus } : null # unbind key keymap_term: # keymap when terminal is focused reset: true : { c: toggle-focus } : c: batch cmds: - { c: focus-procs } - { c: next-proc } ``` -------------------------------- ### Run mprocs with npm Scripts Source: https://github.com/pvolok/dekit/blob/master/README.md Execute mprocs and load scripts defined in your package.json by using the --npm argument. ```sh mprocs --npm ``` -------------------------------- ### Run mprocs with command-line arguments Source: https://github.com/pvolok/dekit/blob/master/README.md Execute mprocs by passing commands directly as arguments. This is useful for simple, one-off process management. ```sh mprocs "yarn test -w" "webpack serve" ``` -------------------------------- ### Batch execution of multiple commands Source: https://github.com/pvolok/dekit/blob/master/README.md Use the 'batch' command to execute a list of commands sequentially. The 'cmds' field takes an array of command objects. ```yaml {c: batch, cmds: [{c: focus-procs}, …]} ``` -------------------------------- ### Enable Clipboard Copying in Tmux Source: https://github.com/pvolok/dekit/blob/master/README.md Add this line to your `~/.tmux.conf` file to enable clipboard copying functionality within tmux. ```tmux set -g set-clipboard on ``` -------------------------------- ### Basic mprocs remote commands Source: https://github.com/pvolok/dekit/blob/master/README.md Common commands for managing processes and focus. Includes options for quitting, focusing, and restarting. ```yaml {c: quit-or-ask} ``` ```yaml {c: quit} ``` ```yaml {c: force-quit} ``` ```yaml {c: toggle-focus} ``` ```yaml {c: focus-procs} ``` ```yaml {c: focus-term} ``` ```yaml {c: zoom} ``` ```yaml {c: next-proc} ``` ```yaml {c: prev-proc} ``` ```yaml {c: select-proc, index: } ``` ```yaml {c: start-proc} ``` ```yaml {c: term-proc} ``` ```yaml {c: kill-proc} ``` ```yaml {c: restart-proc} ``` ```yaml {c: restart-all} ``` ```yaml {c: force-restart-proc} ``` ```yaml {c: force-restart-all} ``` ```yaml {c: show-commands-menu} ``` ```yaml {c: show-add-proc} ``` ```yaml {c: duplicate-proc} ``` ```yaml {c: show-remove-proc} ``` ```yaml {c: remove-proc, id: ""} ``` ```yaml {c: show-rename-proc} ``` ```yaml {c: scroll-down} ``` ```yaml {c: scroll-up} ``` -------------------------------- ### Send a command to a running mprocs instance Source: https://github.com/pvolok/dekit/blob/master/README.md Use the --ctl argument to send commands to a running mprocs instance. Commands are encoded in YAML. ```bash mprocs --ctl '{c: quit}' ``` ```bash mprocs --ctl '{c: send-key, key: }' ``` -------------------------------- ### Copy mode operations Source: https://github.com/pvolok/dekit/blob/master/README.md Commands for entering copy mode, moving selection, and copying text. Use 'copy-mode-copy' to copy and exit. ```yaml {c: copy-mode-enter} ``` ```yaml {c: copy-mode-leave} ``` ```yaml {c: copy-mode-move, dir: } ``` ```yaml {c: copy-mode-end} ``` ```yaml {c: copy-mode-copy} ``` -------------------------------- ### OS-Specific Configuration with $select Source: https://github.com/pvolok/dekit/blob/master/README.md Use the $select operator in mprocs.yaml to define OS-dependent values for shell commands or environment variables. Specify values for 'windows', 'linux', 'macos', 'freebsd', and a default with '$else'. ```yaml procs: my process: shell: $select: os windows: "echo %TEXT%" $else: "echo $TEXT" env: TEXT: $select: os windows: Windows linux: Linux macos: Macos freebsd: FreeBSD ``` -------------------------------- ### Rename a process Source: https://github.com/pvolok/dekit/blob/master/README.md Use the 'rename-proc' command to rename the currently selected process. Provide the new name in the 'name' field. ```yaml {c: rename-proc, name: ""} ``` -------------------------------- ### Scroll lines in a process terminal Source: https://github.com/pvolok/dekit/blob/master/README.md Use 'scroll-down-lines' or 'scroll-up-lines' to scroll a specific number of lines. Specify the count 'n'. ```yaml {c: scroll-down-lines, n: } ``` ```yaml {c: scroll-up-lines, n: } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.