frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Extendable" Shell Commands?

1•baobun•49m ago
I often find myself in the situation where I fire off a long-running process in the shell and then want to do something as a follow-up, at which point it is too late to add that '&& foo || bar' at the end of the line.

Simple example: Download this Linux ISO.. Oh, and flash it to my USB drive... Oh, and check the shasum... Oh, and show a notification when done.

Then the next time I want a slight variation of something more complex, every time I'm weighing the running time of the first process vs the time to type out or modify the second part.

I could open a separate shell and spawn a second process waiting for the first to finish but rarely worth the overhead of doing that.

So what I'd like is a "chainable shell" or "living prompt", where I can type out whatever comes next as the last shell command is already and still running in the foreground. Depending on the program, I noticed this kind-of already works where bash will actually go ahead and run whatever I type in the middle of the output of a blocking process once it's finished. But only for some programs.

Feels like something that hits most of us and should be possible to make something in bash/zsh for triggered by a keyboard shortcut. Yet I've never seen anything for this.

Anyone hacked together or found something like this that they use and would like to share?

Comments

not_your_vase•43m ago
Hack:

    long-running-command &
    pid_of_long_running_cmd=$(pidof long-running-command)
    tail --pid=$pid_pf_long_running_cmd -f /dev/null && forgotten-command
Tail quits when $pid_pf_long_running_cmd disappears, and kicks off the forgotten-command. (It won't know however the exit code of the original cmd, so that's a drawback)
baobun•40m ago
Yeah, the problem here is it requires preparation and preemptively adding that '&' to the first command. It doesn't work for the "oh, right" situations. Running all commands this way by default wouldn't make life easier.

But along those lines yeah, it's basically the same as the "wait for it in another terminal" approach and I guess a solitioun would contain something similar.

baobun•35m ago
Prompted by https://news.ycombinator.com/item?id=46231293 - piping from stdout/stderr would be extra cool but we only really need the exit code here.
ranger_danger•14m ago
Hey thanks. Actually I do something similar already using the "task-spooler" package on Debian.

$ tsp yt-dlp <some URL>

# returns immediately, runs tasks in its own shell in the background one at a time (or can be parallel if you tell it to)

# can check status/stdout any time with tsp -t (including older/other queued commands)

# just queue a new command to run after the last one at any time

$ tsp ffmpeg -i <file that will be downloaded by yt-dlp> <other params>

etc.

Base UI

https://base-ui.com
1•handfuloflight•1m ago•0 comments

Google's GenTabs turn browser tabs into interactive apps

https://blog.google/technology/google-labs/gentabs-gemini-3/
1•py4•2m ago•0 comments

The Component Gallery

https://component.gallery/
1•weakfish•3m ago•0 comments

How to build a personal webpage from scratch

https://rutar.org/writing/how-to-build-a-personal-webpage-from-scratch/
1•fanf2•3m ago•0 comments

When Accuracy Meets Parallelism in Diffusion Language Models

http://66.42.62.31:1313/blogs/text-diffusion/
1•snyhlxde•4m ago•1 comments

Show HN: Bring screencasts into your editor with CodeMic

https://CodeMic.io/#hn
1•seansh•4m ago•1 comments

Flock cameras remained active after officials asked to be turned off

https://therecord.media/flock-safety-cameras-remained-active-after-cities-asked-turned-off
3•ghouse•5m ago•1 comments

ToGo – Python bindings for TG (Fast point-in-polygon)

https://github.com/mindflayer/togo
1•mindflayer•7m ago•1 comments

Anthropic donates MCP to the Linux Foundation for open and accessible AI

https://aaif.io/press/linux-foundation-announces-the-formation-of-the-agentic-ai-foundation-aaif-...
1•Santosh83•7m ago•0 comments

Simple teflon coating boosts hydrogen production efficiency by 40%

https://techxplore.com/news/2025-12-simple-teflon-coating-boosts-hydrogen.html
1•geox•9m ago•0 comments

Light-bending ferroelectric controls blue and UV could transform chipmaking

https://phys.org/news/2025-12-material-blue-ultraviolet-advanced-chipmaking.html
1•westurner•9m ago•0 comments

Anthropic's Vision Advantage Is a Lot Like Apple's from the 2010s

https://danielmiessler.com/blog/anthropics-vision-advantage
1•wavelander•9m ago•0 comments

AI Can Write Your Code. It Can't Do Your Job

https://terriblesoftware.org/2025/12/11/ai-can-write-your-code-it-cant-do-your-job/
2•speckx•10m ago•0 comments

Why GPT-5.2 is our model of choice for Augment Code Review

https://www.augmentcode.com/blog/why-gpt-5-2-is-our-model-of-choice-for-augment-code-review
7•knes•10m ago•2 comments

AI Agent Security: A curated list of tools for red teaming and defense

https://github.com/ProjectRecon/awesome-ai-agents-security
1•ProjectRecon•10m ago•1 comments

100% Local LLM. Mistral Vibe vs. Opencode. A Claude Code Alternative? [video]

https://www.youtube.com/watch?v=WKBzcpU88zo
1•grigio•11m ago•0 comments

Most used programming languages in 2025

https://devecosystem-2025.jetbrains.com
1•birdculture•13m ago•0 comments

Bionetta: Efficient Client-Side Zero-Knowledge Machine Learning Proving

https://arxiv.org/abs/2510.06784
1•badcryptobitch•15m ago•1 comments

System76 Launches Pop _OS 24.04 LTS with Cosmic Desktop

https://www.phoronix.com/news/System76-Ships-Pop-OS-24.04
3•mikece•15m ago•0 comments

Show HN: CyberCage – Security platform for AI tools and MCP servers

https://cybercage.io/
4•ziyasal•16m ago•2 comments

Show HN: Free Security audit that checks what other tools miss

https://domainoptic.com/
1•renbuilds•16m ago•0 comments

Tool UI

https://www.tool-ui.com
1•handfuloflight•17m ago•0 comments

Protocolo Flux: RBS Financiada Por Canon Cósmico (ZKP Roadmap

https://paquinobr-svg.github.io/manifiesto-flux/
1•ProtocoloFLUX•17m ago•0 comments

Rivian goes big on autonomy, with custom silicon, Lidar, and a hint at robotaxis

https://techcrunch.com/2025/12/11/rivian-goes-big-on-autonomy-with-custom-silicon-lidar-and-a-hin...
4•ryan_j_naughton•17m ago•0 comments

Comparing AI Agents to Cybersecurity Professionals in Real-World Pen Testing

https://arxiv.org/abs/2512.09882
1•littlexsparkee•19m ago•1 comments

Marco Rubio bans Calibri font at State Department for being too DEI

https://techcrunch.com/2025/12/10/marco-rubio-bans-calibri-font-at-state-department-for-being-too...
3•rbanffy•20m ago•0 comments

Hyper-Scalers Are Using CXL to Lower the Impact of DDR5 Supply Constraints

https://www.servethehome.com/hyper-scalers-are-using-cxl-to-lower-the-impact-of-ddr5-supply-const...
1•rbanffy•23m ago•0 comments

Over 10k Docker Hub images found leaking credentials, auth keys

https://www.bleepingcomputer.com/news/security/over-10-000-docker-hub-images-found-leaking-creden...
3•todsacerdoti•24m ago•0 comments

Maybe AI is a regular platform shift

https://frontierai.substack.com/p/maybe-ai-is-a-regular-platform-shift
1•cgwu•25m ago•0 comments

GovSignals is solving government procurement using Trigger.dev

https://trigger.dev/customers/govsignals-customer-story
1•semicognitive•26m ago•0 comments