Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Claude Code now reads AGENTS.md if there is no Claude.md(claude.com ↗)
    71comments
  2. Android 17 is the first since 3.x to add new APIs without releasing to the AOSP(grapheneos.social ↗)
    158comments
  3. Saving another 100TB of RAM(cloudflare.com ↗)
    24comments
  4. Cloudflare Quick Tunnels(cloudflare.com ↗)
    211comments
  5. Xcode 27.1 Beta Release Notes(developer.apple.com ↗)
    54comments
  6. Cache-to-Cache: Direct Semantic Communication Between LLMs (2025)(arxiv.org ↗)
    10comments
  7. Photon-Emission-Guided Laser Fault Injection Enables RP2350 Secure Debug(ledger.com ↗)
    40comments
  8. How to Write with an LLM(sockpuppet.org ↗)
    232comments
  9. Show HN: Cactus Needle 3: 8-29MB automation models can match DeepSeek V4 Flash(cactuscompute.com ↗)
    70comments
  10. OpenJev(openjev.com ↗)
    234comments
  11. Cyclomatic Complexity in C#(ndepend.com ↗)
    3comments
  12. War may be coming. Are we psychologically ready?(bbc.com ↗)
    5comments
  13. The Implications of Linguistic Illegibility for LLM Security(arxiv.org ↗)
    13comments
  14. Two parallel neural ectoderm progenitors contribute to the developing brain(newscientist.com ↗)
    49comments
  15. The first new cat species discovered in 100 years(nationalgeographic.com ↗)
    27comments
  16. From Geometry to Algebra and Back Again: 4000 Years of Papers (2023) [video](youtube.com ↗)
    discuss
  17. C++26: Trivial infinite loops are no longer undefined behaviour(sandordargo.com ↗)
    157comments
  18. A search-and-inference database from scratch in pure Zig(antfly.io ↗)
    14comments
  19. How SpaceX streamlined the Raptor engine(construction-physics.com ↗)
    18comments
  20. Korea raises data breach fines to 10% of revenue(koreajoongangdaily.com ↗)
    55comments
  21. I vibed a proof of Conway's conjecture(overreacted.io ↗)
    172comments
  22. Minimal Phone 2(minimalcompany.com ↗)
    132comments
  23. Inside ZCode: Silently uploading your Git history to the cloud(ferstar.org ↗)
    87comments
  24. Warez: The Infrastructure and Aesthetics of Piracy (2021)(archive.org ↗)
    9comments
  25. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  26. US Military had close call after using AI for hallucinated intelligence report(cnn.com ↗)
    257comments
  27. Show HN: Ax-check.com – Can agents use your product?(ax-check.com ↗)
    25comments
  28. Border agents can search cellphones without a warrant or reasonable suspicion(lawandcrime.com ↗)
    118comments
  29. Mathematicians Build Long-Awaited Graph Sandwich(quantamagazine.org ↗)
    15comments
  30. Show HN: Scry, programmable internet search w/ congestion pricing(scry.io ↗)
    16comments

Show HN: I’m writing an ebook version of the Tao of tmux

67 pointsby 9y ago
20 comments
A couple of years ago, I written an intro to tmux (https://tmux.github.io/) inside tmuxp's (https://github.com/tony/tmuxp) documentation called The Tao of tmux (https://tmuxp.readthedocs.io/en/latest/about_tmux.html). I'm in the process of turning it into a feature book.

I am aiming for a December 23rd, 2016 release and am plugging away full time.

I make it available to read on the web for free at https://leanpub.com/the-tao-of-tmux/read.

The GitHub is at https://github.com/git-pull/tao-of-tmux.

For pre-ordering:

- The Leanpub page (updated on a regular basis) is https://leanpub.com/the-tao-of-tmux.

- Amazon Kindle: https://www.amazon.com/gp/product/B01MG342KU

- iTunes: https://geo.itunes.apple.com/us/book/the-tao-of-tmux/id1168912720

Also I have a coupon for pre-orders @ $7.99 https://leanpub.com/the-tao-of-tmux/c/oBsI4y3o4quu.

So there are 2 other books available in the now. I prefer my style of writing about tmux and teaching, since I maintain a few open source libraries for tmux I bring my own perspective along. Also I'd rather stay away from publishers, again, I prefer a book that's available for free to read on the web, DRM-free if you pay, and not have to worry about printing :). It's my first book ever so I feel a lot of pressure to get it done right.

I'm definitely open to feedback and requests to add things. I feel a duty to make a really good book for the community. Any help to spread the word is much appreciated!

9y agoHN ↗

It was the days back when phones still had mechanical keyboards.

This should probably say physical keyboards. Mechanical typically refers to the ones that go clickety clack.

Edit: And

our username’s in the channel persisted in the chatroom list

this should say usernames instead. Hope you'll have a proofreader look through all of it!

9y agoHN ↗

Thanks for the catch, updated.

Hope you'll have a copywriter look through all of it!

I'll likely put the proceeds from the pre-orders to a copywriter. I want the final copy to be best it can be.

I appreciate it!

9y agoHN ↗

If you are on the fence on professional proofreading due to cost, I think that a thorough review by a native English speaker (maybe a good friend) that is at least somewhat technical would be enough to correct a lot of the issues.

I find the way you write enjoyable, free-flowing and absolutely understandable, but there are quite a few instances of expressing things in an subtly unnatural way, which detracts from the otherwise great experience. Perhaps this isn't the best example (and some things are subjective too), but to illustrate what I'm saying:

You’ll even know how to show your CPU usage and memory via the status line.

I would rewrite that to:

You’ll even find out how to show your CPU usage and memory via the status line.

Or even better:

I'll even show you how to display CPU and memory usage right at your status line.

9y agoHN ↗

Purchased. For me tmux is amazing but I figure I only use the basics so far. Looking forward to reading this at the weekend.

9y agoHN ↗

I use TMUX to split screens so I can edit nginx-conf and restart the server form the the same view.

That's probably the most basic usage for TMUX, but somebody please enlighten me, what are some 'advanced' uses? How much more than splitting screens is there? Honest question.

9y agoHN ↗

Slightly relevant: if you find yourself in vim and don't have tmux/are too lazy to open another SSH connection, you can use ":sh" to drop to a shell.

So for the nginx edit conf/restart server scenario you would:

    # vim /etc/nginx/nginx.conf
    <make changes>
    :sh                             # drop to a shell
    # nginx -t                      # check config, let's assume it failed due to a missing "}"
    # exit                          # go back to vim
    <make changes>
    :sh
    # nginx -t && nginx -s reload   # config check passed
    # exit                          # back to vim
    :q                              # exit vim
    #
9y agoHN ↗

Ctrl-z will send Vim to the background (though you probably can't be in insert mode).

`fg` in the shell will then bring the Vim session back to the foreground.

If `:sh` doesn't give you your command history and the same working directory, that might be convenient.

9y agoHN ↗

Here's a few ways I've used tmux:

1. Hierarchical context management. I use different sessions for different projects. One session might have my main development work, one session for a random debugging session for a coworker, one session for a side project or project euler challenge. Within each session I usually have multiple windows. For main development I have one window that has source code and development, one window for testing, and one window for command line/ data wrangling. Within each window I might have a couple panes, for example in testing I have a split screen with testing code on the left and the command line for running tests on the right.

2. Multiple paste buffers. Recently I had 3 or 4 environmental variables I was setting on some different devices. I stuck them into different copy paste buffers and went to town instead of repeatedly copying and pasting from a document.

3. Alerts. I'll often have a few jobs that run for between an hour and a couple hours that I want to just start and forget about. When they're done you can have tmux give you a notification on the window that the job was in and you can go check it out and do more work.

Minor, but interesting use cases:

- share tmux sessions with coworkers. I haven't done this as much but it's great for remote debugging.

- process persistence. Use this all the time. No more nohup & business.

- naming windows. I name almost all my windows like "test" or "hardware".

- moving windows and panes around. You can move panes to different windows and windows to different sessions really easily.

- save tmux state before shutdown. There's a separate plugin that does this but you an actually write your current session to disk and load it up again when you restart.

EDIT: formatting

9y agoHN ↗

In one college class I was taking, we needed to continuously run a webservice from our computers for group projects. In all, we winded up pretty much having a NoSQL database, the backend itself (Nodejs/etc.), as well as other tools.

So basically I set up a tmux session with panels for all those things. It was a good way to keep it all running without needing to always have it "open" per se.

Also it's handy for running certain services/programs in the background when I ssh into a server.

9y agoHN ↗

I've been using Gnu Screen for two years now. Could you please tell me the reasons why I should switch to tmux?

9y agoHN ↗

If you're happy with your screen setup, there's not that much benefit imo, but I made the switch a while ago and have been happy with tmux.

Highlights for me: better support for vertical splits/panes, better mouse support, and more convenient scripting features (for instance, integrating xclip and the tmux copy/paste buffer).

It's possible that screen has caught up in the last few years, but I haven't followed its development.

9y agoHN ↗

Looks good, I will definitely give this a read!

By the way, I think the first section should be 'foreword', rather than 'forward'.

9y agoHN ↗

No worries, thanks for your hard work! Really looking forward - pun intended - to reading it :)

9y agoHN ↗

Can you pitch me one why I should buy this over: tmux: Productive Mouse-Free Development?

I shy away from preorders. Do you have a sign up list of when this is done

9y agoHN ↗

If I can make a suggestion, the cheat sheet is kind of weirdly ordered. It would be helpful if ordered by action, or the actions were grouped together rather than sorted by the command. It is kind of weird that "kill window" is so far from "kill pane", and with things like "display time", "display pane number", and pane movements in between.

9y agoHN ↗

Switched to Tmux from Screen for a while. One feature I missed most is that, in Screen, I can centralize the command prompt and hide the pane split lines. Anybody know how to get that in Tmux?

9y agoHN ↗

Thanks for the preorder coupon :-) At work, I use tmux on cygwin so something to consider adding for Windows users install instructions. At home, i run it with ubuntu from crouton via chromebook. i get by with the basics which is so powerful and simple with vim over my time with screen and emacs. I look forward to learn more. Cheers, tony