home.social

#nushell — Public Fediverse posts

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

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

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

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

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

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

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

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

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

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

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

    github.com/andev0x/paneship
    Feedback and contributions are welcome ❤️
    #opensource #paneship #tmux #shellprompt #rust #zsh #nushell

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  26. @jean_dupont
    U don't have to ditch fish shell 😃. Nushell's external completion options let us use any completions as we like. Like carapace, fish or any custom completions.
    I use fish completions in nushell for some commands. Coz nushell completions are still not that good compared to fish as of now.

  27. @jean_dupont
    U don't have to ditch fish shell 😃. Nushell's external completion options let us use any completions as we like. Like carapace, fish or any custom completions.
    I use fish completions in nushell for some commands. Coz nushell completions are still not that good compared to fish as of now.

    #nushell #fish #shell #completions

  28. @jean_dupont
    U don't have to ditch fish shell 😃. Nushell's external completion options let us use any completions as we like. Like carapace, fish or any custom completions.
    I use fish completions in nushell for some commands. Coz nushell completions are still not that good compared to fish as of now.

    #nushell #fish #shell #completions

  29. @jean_dupont
    U don't have to ditch fish shell 😃. Nushell's external completion options let us use any completions as we like. Like carapace, fish or any custom completions.
    I use fish completions in nushell for some commands. Coz nushell completions are still not that good compared to fish as of now.

    #nushell #fish #shell #completions

  30. @jean_dupont
    U don't have to ditch fish shell 😃. Nushell's external completion options let us use any completions as we like. Like carapace, fish or any custom completions.
    I use fish completions in nushell for some commands. Coz nushell completions are still not that good compared to fish as of now.

    #nushell #fish #shell #completions

  31. Nushell Niceties: Bumping Semantic Version
    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. With the semver bump command you can increase one of the components of the semver type. For example to increase the major version part you can use semver bump major. This command will also update the minor and patch parts if needed. The result is a...

    #dev #softwaredevelopment #Nushell

    jdriven.com/blog/2026/04/Nushe

  32. Nushell Niceties: Bumping Semantic Version
    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. With the semver bump command you can increase one of the components of the semver type. For example to increase the major version part you can use semver bump major. This command will also update the minor and patch parts if needed. The result is a...

    #dev #softwaredevelopment #Nushell

    jdriven.com/blog/2026/04/Nushe

  33. Nushell Niceties: Bumping Semantic Version
    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. With the semver bump command you can increase one of the components of the semver type. For example to increase the major version part you can use semver bump major. This command will also update the minor and patch parts if needed. The result is a...

    #dev #softwaredevelopment #Nushell

    jdriven.com/blog/2026/04/Nushe

  34. Nushell Niceties: Bumping Semantic Version
    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. With the semver bump command you can increase one of the components of the semver type. For example to increase the major version part you can use semver bump major. This command will also update the minor and patch parts if needed. The result is a...

    #dev #softwaredevelopment #Nushell

    jdriven.com/blog/2026/04/Nushe

  35. Nushell Niceties: Bumping Semantic Version
    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. With the semver bump command you can increase one of the components of the semver type. For example to increase the major version part you can use semver bump major. This command will also update the minor and patch parts if needed. The result is a...

    #dev #softwaredevelopment #Nushell

    jdriven.com/blog/2026/04/Nushe

  36. @noboilerplate
    Here is the article I told you about yesterday to use #nushell as main #shell on #nixos:
    determinate.systems/blog/nuenv/

    Not completely there yet, but closer than it seems. And this was in 2023, maybe there are some improvements on that front.

  37. @noboilerplate
    Here is the article I told you about yesterday to use #nushell as main #shell on #nixos:
    determinate.systems/blog/nuenv/

    Not completely there yet, but closer than it seems. And this was in 2023, maybe there are some improvements on that front.

  38. @noboilerplate
    Here is the article I told you about yesterday to use #nushell as main #shell on #nixos:
    determinate.systems/blog/nuenv/

    Not completely there yet, but closer than it seems. And this was in 2023, maybe there are some improvements on that front.

  39. @noboilerplate
    Here is the article I told you about yesterday to use #nushell as main #shell on #nixos:
    determinate.systems/blog/nuenv/

    Not completely there yet, but closer than it seems. And this was in 2023, maybe there are some improvements on that front.

  40. @noboilerplate
    Here is the article I told you about yesterday to use #nushell as main #shell on #nixos:
    determinate.systems/blog/nuenv/

    Not completely there yet, but closer than it seems. And this was in 2023, maybe there are some improvements on that front.