Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
JNRowe
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
18 ms
·
301.
▲
by
JNRowe
3y ago
What felt like an initial thirty second throwaway comment yesterday has turned in to a pile of replies that feel like a poorly conceived Ted talk now, forgive me for that. The dividing line between variables that should be prefixed by expor
302.
▲
Montreal Subway Foot Traffic Data, 2023 Edition
(veronneau.org)
2 points
by
JNRowe
3y ago
|
3 comments
303.
▲
by
JNRowe
3y ago
For the first; Unless your bash config overrides the environment variable you've set it will use $HISTFILE from the calling shell, which is why "HISTFILE=<location>" without the export fixes it. You can test it with:
304.
▲
by
JNRowe
3y ago
FWIW, that is also the default behaviour of zsh's standard completion subsystem for kill. You can try it yourself: "zsh -f" to get a shell without reading a fancy config, start compinit, "kill <Tab>". You can
305.
▲
by
JNRowe
3y ago
Noting that you didn't solicit advice, but… * Exporting shell variables such as HISTFILE isn't necessary, and can be unsafe. For example, if you decide to pop open unconfigured bash from within a zsh session it would intermingle
306.
▲
by
JNRowe
3y ago
As we're in a zsh story, I'll point out it comes with a clever file renaming interface out of the box¹. It allows full access to all the advanced glob operators zsh provides too². ¹ https://zsh.sourceforge.io/Doc&
307.
▲
by
JNRowe
3y ago
Like practically everything zsh, it can be configured. The select-word-style zle widget¹ ships with zsh, and has a bash compatible setting(among others). The interface is super powerful, and given that you can change it in individual zle
308.
▲
Storage Trends 2024
(etbe.coker.com.au)
1 points
by
JNRowe
3y ago
|
0 comments
309.
▲
Writing a simulator to check phased array beamforming
(k3xec.com)
2 points
by
JNRowe
3y ago
|
0 comments
310.
▲
by
JNRowe
3y ago
Well, you don't have to use the two pane mode if you don't want anyway. You can switch to single pane mode, use the second pane for file info, use the second pane as a directory tree in the manner of a "regular" single
311.
▲
by
JNRowe
3y ago
zsh has a comprehensive hook system available for these types of tasks¹(zshaddhistory in this case). It gives you more options to control how/when the history is preserved, and allows you to be more selective in when it should be writ
312.
▲
by
JNRowe
3y ago
Depends on the archive type and how the vfs/extfs code was implemented for it¹. It also depends on how the archive is treated if it is compressed container, which can be seen by looking at how a .tar and .tar.xz are handled for examp
313.
▲
by
JNRowe
3y ago
mc sets $MC_SID in the subshell, so you can query that in your prompt to mark prompts running under mc. Another option might be to bind F10 to start mc, so that it acts as a toggle whether in mc or in a non-mc shell. You'd need to w
314.
▲
Making debputy: Writing declarative parsing logic
(people.debian.org)
2 points
by
JNRowe
3y ago
|
0 comments
315.
▲
Proper Multicast DNS Handling with NetworkManager and systemd-resolved
(feeding.cloud.geek.nz)
2 points
by
JNRowe
3y ago
|
0 comments
316.
▲
LicheePi 4A (RISC-V) First Look
(etbe.coker.com.au)
4 points
by
JNRowe
3y ago
|
0 comments
317.
▲
by
JNRowe
3y ago
My description above wasn't great. I meant completion would be an improvement in the sense that under zsh `~-<Tab>` can show not only the possible completion options, but also the value they expand to. For example, mine is set
318.
▲
by
JNRowe
3y ago
Personally, I'd find the completion output from `~-<Tab>` a worthy improvement, although admittedly with zsh you can configure completion to display both name and value for `$c<Tab>` too I guess(can't recall if that is
319.
▲
by
JNRowe
3y ago
A slightly different take is available if you're a zsh user, as you can take advantage of named directories to replace the aliases. If you do this the directories you've added will show up in regular completions and be available
320.
▲
by
JNRowe
3y ago
pushd also gives you simple access via `~- n ` in both bash and zsh out of the box. The bonus being that `~-[ n ]` is correctly handled when used as an argument to other commands too, so that `cp myfile ~-4/` does what you'd expe
321.
▲
Task Management
(chiark.greenend.org.uk)
1 points
by
JNRowe
3y ago
|
0 comments
322.
▲
Pwned Certificates on the Fediverse
(hezmatt.org)
103 points
by
JNRowe
3y ago
|
19 comments
323.
▲
Mini Books
(blog.trueelena.org)
3 points
by
JNRowe
3y ago
|
0 comments
324.
▲
Reproducible Builds in December 2023
(reproducible-builds.org)
4 points
by
JNRowe
3y ago
|
0 comments
325.
▲
Why all([]) is true, prod([]) is 1, etc.
(buttondown.email)
2 points
by
JNRowe
3y ago
|
1 comments
326.
▲
Migrating a system to Hetzner cloud using REAR and kexec
(abbbi.github.io)
5 points
by
JNRowe
3y ago
|
0 comments
327.
▲
Live Migrating from Raspberry Pi OS Bullseye to Debian Bookworm
(changelog.complete.org)
3 points
by
JNRowe
3y ago
|
0 comments
328.
▲
Consider Security First
(changelog.complete.org)
2 points
by
JNRowe
3y ago
|
0 comments
329.
▲
Validating Debian/Copyright: Licenserecon
(blog.josefsson.org)
1 points
by
JNRowe
3y ago
|
0 comments
330.
▲
by
JNRowe
3y ago
The vote result that led to this public statement received a lot of commentary yesterday¹, and the linked LWN article has a lot of interesting thoughts on the subject too. ¹ https://news.ycombinator.com/item?id=38787005
More ›