Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add x = kill shortcut - #20

Closed
ziadoz wants to merge 7 commits into
laravel:mainfrom
ziadoz:add-kill-cmd
Closed

Add x = kill shortcut#20
ziadoz wants to merge 7 commits into
laravel:mainfrom
ziadoz:add-kill-cmd

Conversation

@ziadoz

@ziadoz ziadoz commented Aug 27, 2026

Copy link
Copy Markdown

This PR adds an x shortcut that kills the selected process. Pressing r will restore the process as normal, including any auto restarting behaviour.

This allows you to temporarily stop certain processes (e.g. a specific queue worker, vite hot builds, Reverb etc.), which is handy when developing.

Some quick commands to test it via Docker:

// Build
docker run --rm -v "$PWD":/w -w /w node:22-alpine \
    sh -c 'corepack enable && pnpm install && pnpm build'

// Process with two long running commands and one that restarts every 3s
docker run --rm -it -v "$PWD":/w -w /w node:22-alpine \
    node dist/cli.js \
    'clock,sh -c "while :; do date; sleep 1; done"' \
    'chatter,sh -c "while :; do echo tick; sleep 1; done"' \
    'flaky,sh -c "echo up; sleep 3; echo boom; exit 1"'
Screen.Recording.2026-08-27.at.12.41.33.mov

@github-actions

Copy link
Copy Markdown

Thanks for submitting a PR!

Note that draft PRs are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@ziadoz
ziadoz marked this pull request as ready for review August 27, 2026 12:11
@taylorotwell

Copy link
Copy Markdown
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions!

@ziadoz
ziadoz deleted the add-kill-cmd branch August 27, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants