Top all-time · #14813
Tomáš Janoušek
Personal blog · work.lisk.inprogrammingsystems
Tomáš Janoušek's personal blog at work.lisk.in covers programming and systems. Since 2020, 5 different Hacker News readers have linked it 10 times, most often “Even faster bash startup (165 ms → 40 ms)”. The last post was in 2023, but the archive is still widely read.
Too few sampled comments (1) to say how often HN recommends it.?
Why HN links it
HN readers link this post by Tomáš Janoušek on speeding up bash startup. The comment thread centres on measuring startup time with hyperfine and whether the post's figures match real-world timing.
Summarised by Claude from a sample of 1 HN comments that link here. Each comment is marked recommending, critical or neutral (citing without judging); how this works.
Most-linked posts?
- Even faster bash startup (165 ms → 40 ms)5 people · 5 mentions · first linked 2020-11-20
What Hacker News says?
Another useful thing to have in one's PS1 is an optional newline if the last output didn't print one itself. Turns out this is non-trivial to get working perfectly ( https://stackoverflow.com/questions/19943482/configure-shell... , https://work.lisk.in/2020/11/20/even-faster-bash-startup.htm... ). The version that I've been using for a while without problems is this one: function __col1_ps1 { [[ $MC_SID ]] && return…
Comment linking /2020/11/20/even-faster-bash-startup.html
on “Bash PS1 Generator”Submitted Even Faster Bash Startup as a story · 4 points
HN discussiontl;dr: If you're seeing unreasonably short startup times, try `hyperfine 'bash -i'` instead. Funny, I thought my startup time was going to be ginormous, considering I've literally committed to it 203 times so far[1]. Nope, 1.4 to 4.3 ms . Update: Eyeballing the startup time it's definitely over a second, so I'm guessing OP is measuring something different from what I'm seeing. `hyperfine bash` is also below 5 ms, so…
Comment linking /2020/11/20/even-faster-bash-startup.html
on “My Faster Bash Startup (2020)”Submitted Even Faster Bash Startup as a story · 4 points
HN discussionSubmitted Even faster bash startup (165 ms → 40 ms) as a story · 4 points
HN discussionSubmitted Linux, media keys and multiple players (mpd, chromium, mpv, vlc,) as a story · 4 points
HN discussionSubmitted Side by side Git-range-diff as a story · 2 points
HN discussionSubmitted Even Faster Bash Startup as a story · 2 points
HN discussionSubmitted Show HN: A better xrandr command-line experience as a story · 2 points
HN discussionSubmitted Font-weight: 300 considered harmful (and a fontconfig workaround) as a story · 2 points
HN discussion