Instance: programming.dev
Joined: 2 years ago
Posts: 11
Comments: 13
Posts and Comments by Gamma, gamma@programming.dev
Comments by Gamma, gamma@programming.dev
keyboard first but mouse available
Sway works really well with mod+drag, but the configuration is nearly the same as i3. Plasma’s new tiling features are really good, but unfortunately mousse driven.
I’d check out the COSMIC beta, might be a good middle ground.
Single quotes don’t allow any escaping in shell, you need
'I don'\''t know what you mean, I'\''ve never encountered any annoyances'
Or, in Zsh with setopt rcquotes:
'I don''t know what you mean, I''ve never encountered any annoyances'
Nothings bad about it. I don't think it's strictly better or worse. Just
- I'm used to it
- The comparison in the video was just disingenuous.
I get annoyed by differences with (Ba|Z)sh when I try Fish, but nushell is so much its own thing that it's fun.
Scrubbing through the video, this hurts my soul
bash
echo $(echo $STRING | sed 's/World/Bash/')
For variables bash has PE forms:
bash
echo ${STRING/World/Bash}
I miss these too much when I try Fish.
string split/collect and similar can't work unless its a builtin. The set foo ( ...... | string ... ) pattern couldn't work if string was an external binary.
Zsh is still king in my book. Fish and Bash don't have the language features, and Zsh completion with menu groups is a premier experience. Fish's completion from manpages is very good, but there's also a standard zsh function to complete from --help output.
If I were to switch shells, it would have to be to nushell.
I've always considered it to be such that the whole thing is simultaneously a joke and true (haha jk, unless?), or maybe just hyperbole. But I've avoided using it myself because clearly it gets misinterpreted way too frequently
Yeah, theres a lot of old old laptops which make no sense to run. But there's a growing crop of more recent used devices that are only being sold off because they don't support Windows 11, and the power efficiency story changes there. The OOP mentions "8.1 lappies"; my main laptop has a 15W 8th gen which is only in the last year starting to feel less appropriate for desktop use. (And honestly, a RAM and storage bump will probably get me another couple years.)
For environmental concerns, youve got to tax new devices with manufacturing costs as well.
100% agree about VMs though.
Same camp as wtype, you have to bind something to exec it.
autokey
I accomplish the same thing with compose sequences, and by binding a keyboard shortcut in my desktop to call a script with wtype. It's not a cross-compositor solution though, as you'd have to manually setup binds in each of them.
I don't see much hope for this one-to-one unfortunately.
Relevant except below, bolded is the key point.
-vprints non-printing characters in a visible representation. Making strange
characters visible is a genuinely new function, for which no existing program is suitable. (sed -n l,
the closest standard possibility, aborts when given very long input lines, which are more likely to occur in
files containing non-printing characters.) So isn’t it appropriate to add the-voption tocatto make
strange characters visible when a file is printed?
The answer is "No." Such a modification confuses what
cat’s job is concatenating files with
what it happens to do in a common special case showing a file on the terminal. A UNIX program
should do one thing well, and leave unrelated tasks to other programs. cat’s job is to collect the data in
files. Programs that collect data shouldn’t change the data; cat therefore shouldn’t transform its input.
I think each of 3.8 through 3.11 were substantial, just in different ways.



Sway works really well with mod+drag, but the configuration is nearly the same as i3. Plasma’s new tiling features are really good, but unfortunately mousse driven.
I’d check out the COSMIC beta, might be a good middle ground.
Single quotes don’t allow any escaping in shell, you need
Or, in Zsh with
setopt rcquotes:Nothings bad about it. I don't think it's strictly better or worse. Just
I get annoyed by differences with (Ba|Z)sh when I try Fish, but nushell is so much its own thing that it's fun.
Scrubbing through the video, this hurts my soul
bash echo $(echo $STRING | sed 's/World/Bash/')For variables bash has PE forms:
bash echo ${STRING/World/Bash}I miss these too much when I try Fish.
string split/collectand similar can't work unless its a builtin. Theset foo ( ...... | string ... )pattern couldn't work ifstringwas an external binary.Zsh is still king in my book. Fish and Bash don't have the language features, and Zsh completion with menu groups is a premier experience. Fish's completion from manpages is very good, but there's also a standard zsh function to complete from
--helpoutput.If I were to switch shells, it would have to be to nushell.
I've always considered it to be such that the whole thing is simultaneously a joke and true (haha jk, unless?), or maybe just hyperbole. But I've avoided using it myself because clearly it gets misinterpreted way too frequently
Yeah, theres a lot of old old laptops which make no sense to run. But there's a growing crop of more recent used devices that are only being sold off because they don't support Windows 11, and the power efficiency story changes there. The OOP mentions "8.1 lappies"; my main laptop has a 15W 8th gen which is only in the last year starting to feel less appropriate for desktop use. (And honestly, a RAM and storage bump will probably get me another couple years.)
For environmental concerns, youve got to tax new devices with manufacturing costs as well.
100% agree about VMs though.
Same camp as wtype, you have to bind something to exec it.
I accomplish the same thing with compose sequences, and by binding a keyboard shortcut in my desktop to call a script with
wtype. It's not a cross-compositor solution though, as you'd have to manually setup binds in each of them.I don't see much hope for this one-to-one unfortunately.
Relevant except below, bolded is the key point.
I think each of 3.8 through 3.11 were substantial, just in different ways.
New 2024 POSIX Standards specify features for sh and standard shell utilities (ieeexplore.ieee.org)
The document itself is paywalled like all the POSIX specifications, so here are some highlights courtesy of some comments at HackerNews, especially from a-french-anon.
Release fish 3.7.0 (released January 1, 2024) (github.com)
This release of fish includes a number of improvements over fish 3.6.4, detailed below. Although work continues on the porting of fish internals to the Rust programming language, that work is not included in this release. fish 3.7.0 and any future releases in the 3.7 series remain C++ programs.
After a multi-year hiatus, an org transfer with new admins and maintainers, jq 1.7 has been released! (github.com)
Check out the newest version of everyone's favorite^[citation needed] command line json processing tool!
How do you shell expand your variables and why?
x-post from !programming@programming.dev: https://programming.dev/post/2165136
What are the most inscrutable lines of $SHELL you've ever written?
I'm sure some of you have absolute monstrosities of sigils (I know I do, in my .zshrc alone). Post them without context, and try and guess what other users's lines are. If you want to provide context or guess, use the markdown editor to spoiler-tag your guesses and explanations!
jq-shell: Functions for bringing json structures useful to shell (github.com)
This came out of playing around with curl and the Lemmy API. I wanted a repeatable way to declare a bunch of shell parameters from a json object, so I wrote a jq module! Take a look at the README for examples, or once you install, run
[ysh] (2/3) Sketches of YSH Features (oilshell.org)
YSH, or the shell formally known as oil, is touted as a possible upgrade path from Bash.