#nushell — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #nushell, aggregated by home.social.
-
Here’s a quick #nushell tip for apps that don’t have auto-reload on configuration changes:
let $app = the-program-in-question
watch $"( $nu.home-dir )/.config/( $app )" {
ps | where name == $app | first | kill -s 12 $in.pid
}Launch it however you like. The command “kill -s 12” sends a reload signal.
-
Hello #fediverse from my new #mbin account!
I write #java for work, and #rust + #nushell at home. I will absolutely ramble about things I have no idea on :p
I love #reverseengineering and #binaries, will work on anything and everything low level. I love OS level shit, from the desktop ux to driver stability. I will absolutely ramble about #linux #arch and #nixos
A serial #matrix enjoyer, text me at @innocentzer0:tchncs.de or @innocentzer0:cyberia.club
I occasionally dabble with functional programming, and will totally not shut up about programming ergonomics and type systems and such, even though I cannot write a compiler for C if my life depended on it.
As an aside, avid movie watcher, reader, manga enjoyer, anime enjoyer, and fanfic reader. Occasionally dabble in writing fanfics of my own. My blog and contains my unhinged ramblings.
I ABSOLUTELY LOVE receiving email, please send me some at [email protected]
Here to have fun and enjoy!
-
Hello #fediverse from my new #mbin account!
I write #java for work, and #rust + #nushell at home. I will absolutely ramble about things I have no idea on :p
I love #reverseengineering and #binaries, will work on anything and everything low level. I love OS level shit, from the desktop ux to driver stability. I will absolutely ramble about #linux #arch and #nixos
A serial #matrix enjoyer, text me at @innocentzer0:tchncs.de or @innocentzer0:cyberia.club
I occasionally dabble with functional programming, and will totally not shut up about programming ergonomics and type systems and such, even though I cannot write a compiler for C if my life depended on it.
As an aside, avid movie watcher, reader, manga enjoyer, anime enjoyer, and fanfic reader. Occasionally dabble in writing fanfics of my own. My blog and contains my unhinged ramblings.
I ABSOLUTELY LOVE receiving email, please send me some at [email protected]
Here to have fun and enjoy!
-
Splitting a string value or list of string values into a table in #Nushell: https://blog.mrhaki.com/2026/07/nushell-niceties-splitting-string.html
-
Splitting a string value or list of string values into a table in #Nushell: https://blog.mrhaki.com/2026/07/nushell-niceties-splitting-string.html
-
Finding overlapping elements in lists and tables in #Nushell using intersect command: https://blog.mrhaki.com/2026/07/nushell-niceties-finding-same-elements.html
-
Finding overlapping elements in lists and tables in #Nushell using intersect command: https://blog.mrhaki.com/2026/07/nushell-niceties-finding-same-elements.html
-
`ls | each { update name ( open $in.name ) }`
That alone gets you (OK, me) about 75 percent of the way to a working notes system. A scratchpad, if you will.
#nushell is neat.
-
I often get frustrated when copy-pasting commands from a website into my Nushell terminal, especially with those line-escaping backslashes...
Here is a little snippet I found to solve that issue.
Read more on my blog: https://moskitohero.com/post/2026-07-17-run-pasted-multiline-backslash-escaped-shell-commands-in-nushell/
-
I often get frustrated when copy-pasting commands from a website into my Nushell terminal, especially with those line-escaping backslashes...
Here is a little snippet I found to solve that issue.
Read more on my blog: https://moskitohero.com/post/2026-07-17-run-pasted-multiline-backslash-escaped-shell-commands-in-nushell/
-
In #Nushell 0.114.0 a command was added to generate passwords from the command-line: https://blog.mrhaki.com/2026/07/nushell-niceties-generating-passwords.html
-
In #Nushell 0.114.0 a command was added to generate passwords from the command-line: https://blog.mrhaki.com/2026/07/nushell-niceties-generating-passwords.html
-
I updated my #nushell prometheus plugin to support nushell 0.114.1: https://crates.io/crates/nu_plugin_prometheus
Labels are flattened into the output by default now, use --no-flatten in case you have an overlapping label like "name".
-
I updated my #nushell prometheus plugin to support nushell 0.114.1: https://crates.io/crates/nu_plugin_prometheus
Labels are flattened into the output by default now, use --no-flatten in case you have an overlapping label like "name".
-
Nushell é uma shell que estrutura a saída dos comandos em tabelas, em vez de texto simples. Em vez de awk/sed, usas where e sort-by para filtrar e ordenar dados diretamente.
Ex: ls | sort-by size | reverse
-
Nushell é uma shell que estrutura a saída dos comandos em tabelas, em vez de texto simples. Em vez de awk/sed, usas where e sort-by para filtrar e ordenar dados diretamente.
Ex: ls | sort-by size | reverse
-
I'm curious if anyone knows of any attempts to make GUI applications composeable like shell scripts, taking the output of one program and piping it into another. I was reading about #nushell and it's structed data formatting made me think that this could be a few steps away from have GUI applications feed data to each other to compose a whole new GUI application.
-
I'm curious if anyone knows of any attempts to make GUI applications composeable like shell scripts, taking the output of one program and piping it into another. I was reading about #nushell and it's structed data formatting made me think that this could be a few steps away from have GUI applications feed data to each other to compose a whole new GUI application.
-
What's bloating up your NixOS configuration? Here are some handy Nushell scripts to find out:
# Total size of your configuration
nix path-info --closure-size --human-readable .#nixosConfigurations.(hostname).config.system.build.toplevel
# Size of largest packages
nix path-info --recursive .#nixosConfigurations.(hostname).config.system.build.toplevel | lines | par-each { |it| du $it | first } | rename path apparent physical | sort-by apparent --reverse | take 20
# Size of largest clojures (packages, including respective dependencies)
nix path-info --closure-size --recursive .#nixosConfigurations.(hostname).config.system.build.toplevel | detect columns --no-headers | rename path size | into filesize size | sort-by size --reverse | take 20 -
What's bloating up your NixOS configuration? Here are some handy Nushell scripts to find out:
# Total size of your configuration
nix path-info --closure-size --human-readable .#nixosConfigurations.(hostname).config.system.build.toplevel
# Size of largest packages
nix path-info --recursive .#nixosConfigurations.(hostname).config.system.build.toplevel | lines | par-each { |it| du $it | first } | rename path apparent physical | sort-by apparent --reverse | take 20
# Size of largest clojures (packages, including respective dependencies)
nix path-info --closure-size --recursive .#nixosConfigurations.(hostname).config.system.build.toplevel | detect columns --no-headers | rename path size | into filesize size | sort-by size --reverse | take 20 -
`ps | where name like bartertown | select ppid`
(Pause for puzzled looks.)
That’s “Who run Bartertown?” in #nushell
-
Oha, #nushell unterstützt in Version 0.114 auch das Parsen von Semver https://www.nushell.sh/blog/2026-07-04-nushell_v0_114_0.html#added-semantic-version-parsing-and-commands
-
Oha, #nushell unterstützt in Version 0.114 auch das Parsen von Semver https://www.nushell.sh/blog/2026-07-04-nushell_v0_114_0.html#added-semantic-version-parsing-and-commands
-
You can sync this file to multiple computers and edit it however you like, e.g. in vim, helix or Obsidian.
Here is what I added to my `config.nu` for #nushell, I can even do `shortcuts --help` this way:
```nu
def shortcuts [
search_string: string # Will be expanded from input e.g. `helix` to `'# helix'`.
] {
mdq $"# ($search_string)" $env.SHORTCUTS_FILE | glow # $env.SHORTCUTS_FILE is defined in `env.nu`
}```
(Sorry if this doesn't render nice in your Mastodon frontend)
-
You can sync this file to multiple computers and edit it however you like, e.g. in vim, helix or Obsidian.
Here is what I added to my `config.nu` for #nushell, I can even do `shortcuts --help` this way:
```nu
def shortcuts [
search_string: string # Will be expanded from input e.g. `helix` to `'# helix'`.
] {
mdq $"# ($search_string)" $env.SHORTCUTS_FILE | glow # $env.SHORTCUTS_FILE is defined in `env.nu`
}```
(Sorry if this doesn't render nice in your Mastodon frontend)
-
Nushell made shell scripting really enjoyable. I started my journey 15 years back with bash, moved to bash-incompatible fish, never could really used xonsh due to speed.
But, Nushell is a whole another beast! Data really became a first-class citizen, scripting is powerful and fun, integrations are excellent.
-
https://codeberg.org/innocentzer0/pages/src/branch/main/assets/bloggen.nu
Don't y'all love it when your entire #ssg is just a #nushell wrapper over #pandoc 🤗 (don't be fooled, nushell does a lot of heavy lifting here 🙃)
-
https://codeberg.org/innocentzer0/pages/src/branch/main/assets/bloggen.nu
Don't y'all love it when your entire #ssg is just a #nushell wrapper over #pandoc 🤗 (don't be fooled, nushell does a lot of heavy lifting here 🙃)
-
I write #java for work, and #rust + #nushell at home. I will absolutely ramble about things I have no idea on :p
loves #reverseengineering and #binaries, will work on anything and everything low level. I love OS level shit, from the desktop ux to driver stability. I will absolutely ramble about #linux #arch and #nixos
I occasionally dabble with functional programming, and will totally not shut up about my #ocaml mmtk port.
As an aside, avid movie watcher, reader, manga enjoyer, anime enjoyer, and fanfic reader.
Here to have fun and enjoy!
-
I write #java for work, and #rust + #nushell at home. I will absolutely ramble about things I have no idea on :p
loves #reverseengineering and #binaries, will work on anything and everything low level. I love OS level shit, from the desktop ux to driver stability. I will absolutely ramble about #linux #arch and #nixos
I occasionally dabble with functional programming, and will totally not shut up about my #ocaml mmtk port.
As an aside, avid movie watcher, reader, manga enjoyer, anime enjoyer, and fanfic reader.
Here to have fun and enjoy!
-
The latest Nu shell has fish like abbrevs!
```
$env.config.abbreviations = {
ll: "ls -l"
gs: "git status"
}
```https://www.nushell.sh/blog/2026-05-23-nushell_v0_113_0.html#added-fish-style-abbreviations
-
The latest Nu shell has fish like abbrevs!
```
$env.config.abbreviations = {
ll: "ls -l"
gs: "git status"
}
```https://www.nushell.sh/blog/2026-05-23-nushell_v0_113_0.html#added-fish-style-abbreviations
-
#Nushell 0.113
https://www.nushell.sh/blog/2026-05-23-nushell_v0_113_0.htmlHighlights:
* Fast file search with `idx`
* Stream detective mode: `peek`
* Verbose file operations now return tables
* Markdown, now with less AST noise -
#Nushell 0.113
https://www.nushell.sh/blog/2026-05-23-nushell_v0_113_0.htmlHighlights:
* Fast file search with `idx`
* Stream detective mode: `peek`
* Verbose file operations now return tables
* Markdown, now with less AST noise -
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
RE: https://mastodon.social/@h4ckernews/116623104745963278
I hate #bash for it's syntax, that's why I turned to #Nushell, which is much cleaner and looks a little more like #ruby. But it is not posix-compatible, which is kind of annoying sometimes.
This shell brings the best of both worlds.
Using ruby to do complex shell commands... Gotta try it out!
-
wtf #nushell kann SQLite lesen? https://www.nushell.sh/commands/docs/query_db.html
Das muss ich ja demnächst mal ausprobieren.
-
wtf #nushell kann SQLite lesen? https://www.nushell.sh/commands/docs/query_db.html
Das muss ich ja demnächst mal ausprobieren.
-
📌 Nushell: dimentica awk e sed. Questa shell cross-platform legge nativamente JSON, CSV, YAML e SQLite e trasforma ogni pipeline in un flusso di dati strutturati, pronti da filtrare e analizzare.
https://gomoot.com/nushell-la-shell-che-comprende-i-tuoi-dati/ -
📌 Nushell: dimentica awk e sed. Questa shell cross-platform legge nativamente JSON, CSV, YAML e SQLite e trasforma ogni pipeline in un flusso di dati strutturati, pronti da filtrare e analizzare.
https://gomoot.com/nushell-la-shell-che-comprende-i-tuoi-dati/ -
CW: long post, this is about a nerdy game
I’ve played a bit of https://replicant.space lately. It’s an API-based game, and I was very curious about it. I’ve had an idea about a web game featuring a fully-fledged API for a while, but never got around doing much about it, and now my dream has come true thanks to @mercutio !
What’s this game about ?
Being an API-only game is quite an experience. Apart from a good documentation (both "human-friendly" and made-for-automated-discovery), and a tutorial covering the basics, there is no user-friendly interface. All of the interaction take place using HTTP requests (mostly
GETandPOST).Unless someone develops a user-friendly frontend, this will remain nerd stuff. That’s what makes it cool. However, it could also be a fun playground to learn about APIs, and I could even see teachers basing their courses around it.
Starting the game
Registering for an account requires sending a
POSTrequest to an API endpoint. I then got an email with a confirmation link, which leads to a page containing the precious API token I then used to authenticate every request. At this point, I was simply using cURL.Once being registered, I knew I couldn’t simply start to play. I had to setup Prometheus to scrape some precious metrics. I initially settled on two : my total experience points, and my number of replicants. I then added more as I played.
I started playing by following the quickstart. I got my bearings in
NANKI, travelled the system, mined resources, built some drones… This is when I stopped usingcurlin favour of Nushell. It’s basically a shell with some API and data processing built-in. This was a nice way to get more used to it, and I really took advantage of the pretty formatting of nu. Later, I started writing nu scripts to automate some things (deploying and stowing swarms of drones).My first impressions
I’ve just started, and this is the point of view of someone used to APIs, but not to this game in particular. There are also many features (trading, species…) I haven’t used yet. The first thing to say it’s that Tony has made sure to have some nice documentation to follow. This is probably the single most important feature to have for a game like this one. There is also a Postman collection offered, but this is not something I’ve used before. I may explore this way later. I expect this would help beginners a lot.
However, I’ve had an issue when sending
POSTrequest at first. I pasted the ones from the quickstart, changing only the values, and got400 Bad requestin return. It turns out I had forgotten to specify a content-type, which should be set toapplication/json. While this is not specific to this game, it could be nice to have a reminder in the docs.On the same topic, I tended to leave trailing slashes at first, which returned
422HTTP errors.Otherwise, the game runs fine. The API limits are quite generous. For now, I expect most of my requests spikes to be when managing drone swarms (one request per drone at least) and my metrics script (10 requests at once every ten minutes).
As for the game itself, I expected to have a small proof of concept, with a relatively narrow set of features. But while it’s probably not as massive as Eve Online, there are definitely lots to do. I’ve only touched on the basics, but there are many cool things I’ve yet to experiment. And there’s always the "automation metagame", where scripting things is cool in itself. Thanks a lot to Tony for creating this fun niche game !
Metrics
So, I may have a problem. I love metrics, even when their usefulness is dubious at best. So I got myself some. A bash script, a systemd timer and a quick Ansible playbook got me started. My script is definitely not pretty, but it works. It’s basically a bunch of
curl | jq,echo, and the standard output is directed to a file read by Node Exporter. I was able to do quite a bit (see screenshots), including exporting the game leaderboards and watching my amount of XP grow. There’s still lots to do there. Aggregating the various resources I’ve mined would be nice. I’m planning of releasing my setup, so that other could use it, but probably not today. -
Paneship now supports Bash, Zsh, Fish, PowerShell, Nushell, and more.
A fast daemon-powered shell prompt written in Rust for tmux workflows and large repositories.https://crates.io/crates/paneship
Feedback and contributions are welcome ❤️
#opensource #paneship #tmux #shellprompt #rust #zsh #nushell -
Nushell Niceties: Wrapping External Commands With def --wrapped
A blog by @mrhakiThe def keyword in Nushell is used to define a custom command. By adding the --wrapped flag you can tell Nushell to accept unknown flags and arguments and pass them on as strings. In the command parameters you use a "rest" parameter defined by … to capture the remaining arguments. Then in the command body you use the spread operator … to expand them...
#dev #softwaredevelopment #Nushell
https://jdriven.com/blog/2026/05/Nushell-Niceties-Wrapping-External-Commands-With-def---wrapped/
-
Nushell Niceties: Check Semantic Version Is A Match
A blog by @mrhakiIn a previous blogpost you can learn about the semver command in Nushell to transform a string value into a semver type. The command has a subcommand match-req. You can use this command to check if a version matches part of the semantic version parts. The result is a boolean value. The version to compare with doesn’t have to defined fully, but could exist of only...
#dev #softwaredevelopment #Nushell
https://jdriven.com/blog/2026/04/Nushell-Niceties-Check-Semantic-Version-Is-A-Match/
-
Pass on arguments to an external command from a custom command using --wrapped option in #Nushell: https://blog.mrhaki.com/2026/04/nushell-niceties-wrapping-external.html
-
Nushell Niceties: Sorting Version Values With Semver Ordering
A blog by @mrhakiThe semver Nushell plugin can be used to work with string values as semver type as you can see in a previous post. You can use the semver sort command to sort string values with ordering rules for semantic versions. With natural ordering of string values a value of 10.0.1 is placed before 2.1.0, but if you use semver sort the ordering will be correct....
#dev #softwaredevelopment #Nushell
https://jdriven.com/blog/2026/04/Nushell-Niceties-Sorting-Version-Values-With-Semver-Ordering/