Home New Trending Search
About Privacy Terms
#
#nushell
Posts tagged #nushell on Bluesky
Original post on fosstodon.org

Wrote my first :rust: #Rust program today. A small utility to grab the last value of a matching column in a matching csv file. I had hacked something together with #qsv, #nushell and #python, but those were all too slow for fast repeated calls. This Rust version executes 10-100x faster: a few ms […]

2 0 0 0
Preview
Nushell Niceties: Transform Values Into Semver Types A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Transform a string or record to a semantic version type in #Nushell: blog.mrhaki.com/2026/02/nush...

1 0 0 0

Nushell Niceties: Checking If Value Is In List Or String Or Key In Record
A blog by @mrhaki.com

Nushell has the in operator to check if a value is an...

#dev #softwaredevelopment #Nushell

jdriven.com/blog/2026/03/Nushell-Nic...

0 1 0 0
Preview
nudo Simple Self-Contained Todo/Task CLI Tool for Nushell

Even if I'm busy to migrate from GitHub to Codeberg, I'm having fun playing with my personal project, born for fun and slowly growing up with more basic features. 🚀

#nushell #todo #task

1 0 0 0
table of names on the left and counts on the right. the names are rust package groups and the counts range from 107 to 579. there are 10 rows in the table.

table of names on the left and counts on the right. the names are rust package groups and the counts range from 107 to 579. there are 10 rows in the table.

quick #nushell script later and here are the crates grouped by `prefix-`. i didn't split `prefix_` for the collection so might be incomplete

2 0 1 0

This is a fantastic post, thanks for writing up such detail! I'm a die-hard Bash user, but I can definitely appreciate what #Nushell offers. Especially for ill-behaved CLI commands such as cf :-)

I like the contrast between what you show, and how I manipulate data in the shell with awk, jq, etc.

3 0 2 0
Making sure you're not a bot!

such elegant. very improve. wow.

tildegit.org/hyperreal/bl...

#nushell

0 0 0 0
Preview
Pull requests · nushell/nu_scripts A place to share Nushell scripts with each other. Contribute to nushell/nu_scripts development by creating an account on GitHub.

If you use #nushell and Flutter, Dart, or Git – Gemini is providing a LOT of help to make our collective experience better

github.com/nushell/nu_s...

2 0 0 0

Nushell Niceties: Calculating The Average Of Numeric Values
A blog by @mrhaki.com

In order to calculate an average for a list of numbers, file sizes, durations, or...

#dev #softwaredevelopment #Nushell

jdriven.com/blog/2026/02/Nushell-Nic...

0 1 0 0

You responded to a deleted post. I don't think your suggestions are good. They don't express what sets #nushell apart: Piping structural data

1 0 1 0
Original post on mastodon.online

I write my #Nushell commands like this:

```
def MyCoolCommand [] {
🪄magic
}
# Description of my cool command
alias mcc = MyCoolCommand
```

Then I can run `help aliases` and see them all with descriptions. As usual, running `mcc --help` will give you more details.

I’m not sure if it’s the best […]

0 0 0 0

Nushell Niceties: Calculating The Sum Of Numeric Values
A blog by @mrhaki.com

The math module in Nushell has a lot of useful commands to work with numeric values. You can...

#dev #softwaredevelopment #Nushell

jdriven.com/blog/2026/01/Nushell-Nic...

2 1 0 0
Preview
Nushell Niceties: Checking If Value Is In List Or String Or Key In Record A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

To check if a value is in a list or string, a key is in a record, you can use several operators in #Nushell: blog.mrhaki.com/2026/01/nush...

0 0 0 0

Nushell Niceties: Getting Minimum And Maximum Values
A blog by @mrhaki.com

In Nushell we can use a lot a math related commands to get for example the minimum and maximum...

#dev #softwaredevelopment #Nushell

jdriven.com/blog/2026/01/Nushell-Nic...

0 1 0 0

I think #nushell is about to change my life. #Linux

3 0 0 0
Preview
Nushell Niceties: Calculating The Sum Of Numeric Values A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

The math module in #Nushell has some useful commands. For example it is easy to calculate the sum of multiple numeric values: blog.mrhaki.com/2026/01/nush...

0 0 0 0

นั่งอ่าน #nushell book documentation มา 3-4 ชั่วโมงละ คิดว่าเข้าท่าน่ะ ออกแบบมาได้น่าใช้ดี

จุดมุ่งหมายคือจะเขียนสคริปให้ทำงานได้ทั้งบน linux และ windows ไง สนุกกว่าเขียน powershell อยู่ (ps มัน verbose เกินข้าพเจ้านิยม)

0 0 0 0

Nushell Niceties: Checking String Starts Or Ends With Given String
A blog by @mrhaki.com

To check if a string value starts or ends with a given string you can...

#dev #softwaredevelopment #Nushell

jdriven.com/blog/2026/01/Nushell-Nic...

1 0 0 0
Preview
Nushell Niceties: Getting Minimum And Maximum Values A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Getting the minimum and maximum values on several input types like lists and tables in #Nushell using the math min and math max commands: blog.mrhaki.com/2026/01/nush...

1 0 0 0
Preview
A Comment Divider for Zed using Nushell Like many of you, I recently switched from VS Code to Zed. Despite having a few limitations compared...

#zed #nushell #programming

1 0 0 0

Btw just paying the compliment...

#NuShell is pretty cool stuff, and if they ever figure out a true object pipeline they'll become my second favorite language.

1 0 0 0

“Oh, I see you bought yourself a gaming device. What have you been playing?”
“You know, #WezTerm, #Nushell…”

Maybe it’s just me, but the whole “#Linux on everything” is getting out of hand. I mean, nobody forced me to do it. But they didn’t prevent it, either. So, I blame them.

1 0 0 0

Nushell Niceties: Tables With Different Themes

A blog by @mrhaki.com

#dev #softwaredevelopment #Nushell

jdriven.com/blog/2025/12/Nushell-Nic...

0 0 0 0
Preview
Nushell Niceties: Checking String Starts Or Ends With Given String A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

Simply check if a string value starts or ends with another string value in #Nushell: blog.mrhaki.com/2025/12/nush...

1 0 0 0
Preview
Nushell Niceties: Tables With Different Themes A blog about Groovy, Java, Clojure, Asciidoctor, Gradle and other cool developer subjects.

#Nushell has a lot of different styles to display tables: blog.mrhaki.com/2025/12/nush...

1 0 0 0

Year 2025 hasn't been comfortable.

I pushed myself out of the comfort zone, embraced chaos because that is where and how progress happens. I've switched to split keyboard, picked #jj-vcs over git and invested time into #nix

With three weeks still left it is tempting to make the leap to #nushell

2 0 0 0
Part 1: This Nushell code divides the input into lines, and find the max "joltage" in each line, summing up the totals. The max joltage is found by splitting the line into characters, and each character into and integer, and enumerating this list. The first value is the largest item in the list, but leaving out the last list item. This is done by reversing the list, dropping the first item, then reversing the list back again. The second value is the largest item among the remaining items, that is, from the index of the first value to the end of the list. The list which is to be searched is gotten by dropping all values from 0 to the index of the first value. The function that find the largest value is not a simple max function, because the list is enumerated. So, the special max function uses a reduce or fold operation, which compares adjacent items manually, and sets the largest index and its value in the accumulator.

Part 1: This Nushell code divides the input into lines, and find the max "joltage" in each line, summing up the totals. The max joltage is found by splitting the line into characters, and each character into and integer, and enumerating this list. The first value is the largest item in the list, but leaving out the last list item. This is done by reversing the list, dropping the first item, then reversing the list back again. The second value is the largest item among the remaining items, that is, from the index of the first value to the end of the list. The list which is to be searched is gotten by dropping all values from 0 to the index of the first value. The function that find the largest value is not a simple max function, because the list is enumerated. So, the special max function uses a reduce or fold operation, which compares adjacent items manually, and sets the largest index and its value in the accumulator.

Part 2: This problem is more complex than the first part, because now the "joltage" is made up out of 12 digits, not just 2. So, instead of finding each digit manually (although this is how I prototyped the algorithm) I use a reduce or fold operation on the sequence of digits counting down from 12 to 1. Each fold iteration then finds the largest digit in the line, in the range from the index in the accumulator (which is the index of the previous largest digit) to the length of the line minus the value of the sequence which counts down from 12. It then stores the index of this largest digit in the accumulator, and concatenates the digit onto the value field in the accumulator.

Part 2: This problem is more complex than the first part, because now the "joltage" is made up out of 12 digits, not just 2. So, instead of finding each digit manually (although this is how I prototyped the algorithm) I use a reduce or fold operation on the sequence of digits counting down from 12 to 1. Each fold iteration then finds the largest digit in the line, in the range from the index in the accumulator (which is the index of the previous largest digit) to the length of the line minus the value of the sequence which counts down from 12. It then stores the index of this largest digit in the accumulator, and concatenates the digit onto the value field in the accumulator.

#AdventOfCode Day 3 in #nushell

1 0 1 0
Part 1: This code takes the input string, splits it into rows and "from" and "to" columns, and casts the strings to integers. Then, in parallel, the sequence of integers from "from" to "to" is filtered to only keep those numbers that are even (so they can be split cleanly in half) and then for which each of the two halves are equal. The latter check uses a function to split each number in half by taking a substring from 0 to the middle (which is the length integer divided by 2) and the substring from the middle to the end.

Part 1: This code takes the input string, splits it into rows and "from" and "to" columns, and casts the strings to integers. Then, in parallel, the sequence of integers from "from" to "to" is filtered to only keep those numbers that are even (so they can be split cleanly in half) and then for which each of the two halves are equal. The latter check uses a function to split each number in half by taking a substring from 0 to the middle (which is the length integer divided by 2) and the substring from the middle to the end.

Part 2: This code parses the input similarly to Part 1, but only checks if there are repeats in each number. This check divides the number (as a string) into chunks of varying width, from width 1 to half of the length of the string. For each chunked number, a window function checks if all adjacent chunks and therefore all chunks are equal.

Part 2: This code parses the input similarly to Part 1, but only checks if there are repeats in each number. This check divides the number (as a string) into chunks of varying width, from width 1 to half of the length of the string. For each chunked number, a window function checks if all adjacent chunks and therefore all chunks are equal.

#AdventOfCode Day 2 in #nushell
Unoptimised and runs quite slowly, but I've had worse so ...

1 0 0 0
Part 1: A nushell function which reads a file, splits it into lines, then performs a fold or reduce on the lines. Starting with a sum of 50 and a zero count of 0, each line is split into an operation (L or R) and a value. The value is added or subtracted from the sum depending on the operation, and mod 100 is taken of the result, giving the new sum. Then, the number of zeroes is calculated by adding 1 to the old zeroes if the new sum is 0. The sum and zeroes are returned in the accumulator of the reduce. Lastly, the zeroes field of the accumulator is returned.

Part 1: A nushell function which reads a file, splits it into lines, then performs a fold or reduce on the lines. Starting with a sum of 50 and a zero count of 0, each line is split into an operation (L or R) and a value. The value is added or subtracted from the sum depending on the operation, and mod 100 is taken of the result, giving the new sum. Then, the number of zeroes is calculated by adding 1 to the old zeroes if the new sum is 0. The sum and zeroes are returned in the accumulator of the reduce. Lastly, the zeroes field of the accumulator is returned.

Part 2: This nushell code is similar to that in the previous screenshot, but, this time, mod 100 is not immediately done on the sum. Instead, the "raw" sum is calculated by only doing the "operation" on the accumulated sum. The additional zeroes value is then calculated by integer dividing the absolute value of the raw sum by 100, and adding an extra 1 if the raw sum is less than 0 and the starting sum was not 0.

Part 2: This nushell code is similar to that in the previous screenshot, but, this time, mod 100 is not immediately done on the sum. Instead, the "raw" sum is calculated by only doing the "operation" on the accumulated sum. The additional zeroes value is then calculated by integer dividing the absolute value of the raw sum by 100, and adding an extra 1 if the raw sum is less than 0 and the starting sum was not 0.

#AdventOfCode Day 1 in #nushell

2 0 0 0