home.social

#nushell — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #nushell, aggregated by home.social.

fetched live
  1. 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.

    nushell.sh/commands/docs/watch

  2. 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!

  3. 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!

  4. `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.

  5. 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: moskitohero.com/post/2026-07-1

    #nushell #bash #shell #snippet

  6. 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: moskitohero.com/post/2026-07-1

    #nushell #bash #shell #snippet

  7. I updated my #nushell prometheus plugin to support nushell 0.114.1: crates.io/crates/nu_plugin_pro

    Labels are flattened into the output by default now, use --no-flatten in case you have an overlapping label like "name".

  8. I updated my #nushell prometheus plugin to support nushell 0.114.1: crates.io/crates/nu_plugin_pro

    Labels are flattened into the output by default now, use --no-flatten in case you have an overlapping label like "name".

  9. 📊 Supported shells: #zsh, #bash, #fish, #nushell, #xonsh and #PowerShell (tier 2). MIT licensed, ~29.8k stars, latest release 18.16.1

    🌐 github.com/atuinsh/atuin

  10. 📊 Supported shells: #zsh, #bash, #fish, #nushell, #xonsh and #PowerShell (tier 2). MIT licensed, ~29.8k stars, latest release 18.16.1

    🌐 github.com/atuinsh/atuin

  11. 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.sh/book/quick_tour.html

    #Nushell #Shell #CommandLine #DevTools

  12. 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.sh/book/quick_tour.html

    #Nushell #Shell #CommandLine #DevTools

  13. 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.

  14. 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.

  15. 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

    #nix #nixos #nushell

  16. 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

    #nix #nixos #nushell

  17. `ps | where name like bartertown | select ppid`

    (Pause for puzzled looks.)

    That’s “Who run Bartertown?” in #nushell

  18. 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)

  19. 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)

  20. 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.

  21. codeberg.org/innocentzer0/page

    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 🙃)

  22. codeberg.org/innocentzer0/page

    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 🙃)

  23. Best module I've defined for #nushell & #hyprland this week:

    def hyprrun [ command_run: string ] {
    hyprctl eval $"hl.exec_cmd\( \"($command_run)\" \)"
    }

    Handy when you want to run something in the hyprland context, not your terminal window

  24. 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!

  25. 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!

  26. The latest Nu shell has fish like abbrevs!

    ```
    $env.config.abbreviations = {
    ll: "ls -l"
    gs: "git status"
    }
    ```

    nushell.sh/blog/2026-05-23-nus

    #nushell

  27. The latest Nu shell has fish like abbrevs!

    ```
    $env.config.abbreviations = {
    ll: "ls -l"
    gs: "git status"
    }
    ```

    nushell.sh/blog/2026-05-23-nus

    #nushell

  28. #Nushell 0.113
    nushell.sh/blog/2026-05-23-nus

    Highlights:
    * Fast file search with `idx`
    * Stream detective mode: `peek`
    * Verbose file operations now return tables
    * Markdown, now with less AST noise

  29. #Nushell 0.113
    nushell.sh/blog/2026-05-23-nus

    Highlights:
    * Fast file search with `idx`
    * Stream detective mode: `peek`
    * Verbose file operations now return tables
    * Markdown, now with less AST noise

  30. RE: mastodon.social/@h4ckernews/11

    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!

  31. RE: mastodon.social/@h4ckernews/11

    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!

  32. 📌 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.
    gomoot.com/nushell-la-shell-ch

    #news #nushell #opensource #Rust #shell

  33. 📌 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.
    gomoot.com/nushell-la-shell-ch

    #news #nushell #opensource #Rust #shell

  34. 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 GET and POST).

    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 POST request 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 using curl in 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 POST request at first. I pasted the ones from the quickstart, changing only the values, and got 400 Bad request in return. It turns out I had forgotten to specify a content-type, which should be set to application/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 422 HTTP 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.

    #replicantSpace #gaming #api #nushell #prometheus

  35. 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.

    crates.io/crates/paneship
    Feedback and contributions are welcome ❤️
    #opensource #paneship #tmux #shellprompt #rust #zsh #nushell

  36. Nushell Niceties: Wrapping External Commands With def --wrapped
    A blog by @mrhaki

    The 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

    jdriven.com/blog/2026/05/Nushe

  37. Nushell Niceties: Check Semantic Version Is A Match
    A blog by @mrhaki

    In 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

    jdriven.com/blog/2026/04/Nushe

  38. Nushell Niceties: Sorting Version Values With Semver Ordering
    A blog by @mrhaki

    The 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

    jdriven.com/blog/2026/04/Nushe