# Nushell notes

**URL:** <https://community.tmpdir.org/t/nushell-notes/1401>\
**Category:** Tools\
**Tags:** shell, terminal\
**Created:** [October 7, 2024, 4:23pm UTC](https://community.tmpdir.org/t/nushell-notes/1401 "2024-10-07T16:23:01Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [October 7, 2024, 4:23pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/1 "2024-10-07T16:23:01Z")

</div>

Nushell is looking interesting …

> **[Nushell](https://www.nushell.sh/)**
>
> A new type of shell.

Written in Rust of course …

Starting this thread to capture notes about it.

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [October 7, 2024, 4:23pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/2 "2024-10-07T16:23:20Z")

</div>

> **[Nu Shell Is Cool](https://justingarrison.com/blog/2024-01-06-nu-shell-is-cool/)**
>
> Converting a file is a common task and nu shell was the most intuitive way to do it.

---

<div class="post-metadata">

**Author:** ![bminer](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bminer/32/337_2.png) [@bminer](https://community.tmpdir.org/u/bminer)\
**Post date:** [October 10, 2024, 12:41pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/3 "2024-10-10T12:41:47Z")

</div>

I shall be installing this, and I’ll report my findings!

---

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [October 10, 2024, 5:03pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/4 "2024-10-10T17:03:07Z")

</div>

how does nushell compare to fish ?

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [October 10, 2024, 6:04pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/5 "2024-10-10T18:04:45Z")

</div>

# Nushell vs Fish

> Nushell and Fish are both modern shells that aim to improve upon traditional options like Bash, but they have some key differences:
> 
> ## Approach to Data
> 
> Nushell treats everything as structured data rather than raw text [1](https://www.reddit.com/r/fishshell/comments/15t7nw3/should_i_use_fish_shell_or_nushell/). This allows for more powerful data manipulation and analysis capabilities. Fish, while more user-friendly than Bash, still primarily works with text streams like traditional shells [3](https://learningactors.com/beyond-bash-9-lesser-known-linux-shells-and-their-capabilities/).
> 
> ## Syntax and Scripting
> 
> Fish offers a simpler, more readable syntax compared to Bash, making scripting easier [1](https://www.reddit.com/r/fishshell/comments/15t7nw3/should_i_use_fish_shell_or_nushell/). Nushell goes further with a completely new syntax influenced by functional programming languages, offering features like pattern matching and built-in data structures [4](https://www.sophiajt.com/case-for-nushell/).
> 
> ## Interactive Experience
> 
> Fish is known for its excellent out-of-the-box interactive experience, with features like autosuggestions and syntax highlighting [3](https://learningactors.com/beyond-bash-9-lesser-known-linux-shells-and-their-capabilities/). Nushell also aims for a good interactive experience but may require more learning due to its unique approach [1](https://www.reddit.com/r/fishshell/comments/15t7nw3/should_i_use_fish_shell_or_nushell/).
> 
> ## Stability and Maturity
> 
> Fish is more mature and stable, with a consistent scripting language [1](https://www.reddit.com/r/fishshell/comments/15t7nw3/should_i_use_fish_shell_or_nushell/). Nushell is newer and still evolving rapidly, which can mean more frequent changes to scripts [1](https://www.reddit.com/r/fishshell/comments/15t7nw3/should_i_use_fish_shell_or_nushell/).
> 
> ## Data Processing Capabilities
> 
> Nushell excels at data-related tasks, offering built-in support for working with structured data formats like JSON and CSV, as well as powerful data manipulation features
> 
> 2
> 
> . Fish, while capable, doesn’t have the same level of built-in data processing tools.
> 
> ## Cross-platform Support
> 
> Both shells work on Unix-like systems, but Nushell also has good support for Windows[  
> 3  
> ](https://learningactors.com/beyond-bash-9-lesser-known-linux-shells-and-their-capabilities/)[  
> 4  
> ](https://www.sophiajt.com/case-for-nushell/).
> 
> ## Performance
> 
> Nushell can be very fast for certain data manipulation tasks due to its optimized internal architecture
> 
> 2
> 
> .
> 
> ## Learning Curve
> 
> Fish is generally considered easier to learn for those coming from traditional shells, while Nushell may require more time to master its unique concepts[  
> 1  
> ](https://www.reddit.com/r/fishshell/comments/15t7nw3/should_i_use_fish_shell_or_nushell/).In summary, Fish offers a more familiar, user-friendly improvement over traditional shells, while Nushell provides a more radical redesign with powerful data processing capabilities at the cost of a steeper learning curve.

Perplexity Pro in action …

---

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [October 10, 2024, 8:03pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/6 "2024-10-10T20:03:21Z")

</div>

heh, thanks, this is quite helpful. I am a long time zsh user and all these autosuggestions an autocompletions etc. work smartly there for me. I have given some time to fish but the shell scripts ( particularly ) yoe envsetup does not work with fish. I wonder if it will work with nushell ?

---

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [October 10, 2024, 8:05pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/7 "2024-10-10T20:05:31Z")

</div>

```auto
     __ ,
 .--()°'.' Welcome to Nushell,
'|, . ,' based on the nu language,
 !_-(_\ where all data is structured!

Please join our Discord community at https://discord.gg/NtAbbGn
Our GitHub repository is at https://github.com/nushell/nushell
Our Documentation is located at https://nushell.sh
Tweet us at @nu_shell
Learn how to remove this at: https://nushell.sh/book/configuration.html#remove-welcome-message

It's been this long since Nushell's first commit:
5yrs 5months 3hrs 5mins 59secs 170ms 692µs 59ns

Startup Time: 37ms 868µs 833ns

```

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [October 10, 2024, 8:14pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/8 "2024-10-10T20:14:53Z")

</div>

> [@khem](#):
>
> I have given some time to fish but the shell scripts ( particularly ) yoe envsetup does not work with fish. I wonder if it will work with nushell ?

I don’t think so, Nushell is even more off the beaten path.

---

<div class="post-metadata">

**Author:** ![bminer](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bminer/32/337_2.png) [@bminer](https://community.tmpdir.org/u/bminer)\
**Post date:** [October 10, 2024, 8:53pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/9 "2024-10-10T20:53:20Z")

</div>

So, I have looked at many shell alternatives in the past, and nushell looks promising so far.

Downsides: you have to re-think how to do everything  
Upsides: you get to re-think how to do everything

I must say, though, there are so, so many obscure Linux commands like `find` and `xargs` and even `grep` quite honestly. It’s a breath of fresh air to use an entirely new ecosystem.

I found a relatively useful link for us lowly, feeble bash users: [Coming from Bash | Nushell](https://www.nushell.sh/book/coming_from_bash.html)

---

<div class="post-metadata">

**Author:** ![bminer](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bminer/32/337_2.png) [@bminer](https://community.tmpdir.org/u/bminer)\
**Post date:** [October 10, 2024, 9:01pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/10 "2024-10-10T21:01:59Z")

</div>

One thing I must say is remarkable from the start… the error messages really are as good as they say:

 ![image](https://community.tmpdir.org/uploads/default/original/2X/b/b11eca36fcdeaf577fc9a464416fd5b0841f772f.png)

This screenshot just gives you a log of good info. Note that the timestamp is a part of the prompt line but off to the right along with the exit code of the last command (-2 means SIGINT).

---

<div class="post-metadata">

**Author:** ![bminer](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bminer/32/337_2.png) [@bminer](https://community.tmpdir.org/u/bminer)\
**Post date:** [October 16, 2024, 6:57pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/11 "2024-10-16T18:57:42Z")

</div>

Still a good experience so far. This thing has quite the learning curve. I feel like I still know nothing, but I’m having fun learning.

A few things to note:

- Many custom completions already implemented here, including those for `ssh`, `curl`, and `tar`: [GitHub - nushell/nu\_scripts: A place to share Nushell scripts with each other](https://github.com/nushell/nu_scripts/). Unfortunate that these aren’t included by default.
- No easy way to search the contents of files recursively as far as I can tell. I still just use `grep -r`.
- Invoking `bash myscript.sh` for bash scripts is mostly fine, although I have had to port one or two over manually for nushell.

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [October 16, 2024, 7:24pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/12 "2024-10-16T19:24:34Z")

</div>

Thanks for the update Blake!

> [@bminer](#):
>
> No easy way to search the contents of files recursively as far as I can tell. I still just use `grep -r`.

I use ripgrep most of the time – have you tried that?

---

<div class="post-metadata">

**Author:** ![bminer](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bminer/32/337_2.png) [@bminer](https://community.tmpdir.org/u/bminer)\
**Post date:** [October 17, 2024, 2:32pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/13 "2024-10-17T14:32:54Z")

</div>

I have never tried `ripgrep`. I just wrote my [own little script in nu](https://github.com/nushell/nu_scripts/blob/main/sourced/cool-oneliners/find_in.nu):

A few notes:

- its performance feels similar to `grep -r`
- you can annotate [custom commands](https://www.nushell.sh/book/custom_commands.html) so that nu can automatically create the `--help` output
- user-authored custom commands feel like they are actually a part of nu, and that’s a good thing.

Here it is in action:

 ![image](https://community.tmpdir.org/uploads/default/original/2X/6/6c22facd33ef5b1a5eae2193ec5b559715294741.png)

---

<div class="post-metadata">

**Author:** ![bminer](https://community.tmpdir.org/user_avatar/community.tmpdir.org/bminer/32/337_2.png) [@bminer](https://community.tmpdir.org/u/bminer)\
**Post date:** [November 6, 2024, 9:36pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/14 "2024-11-06T21:36:33Z")

</div>

Here’s a little blog post I wrote about nushell: [Blog — BlakeSite](https://blakesite.com/blog/2024-11-06-nushell-a-shell-using-structured-data)

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [November 6, 2024, 9:52pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/15 "2024-11-06T21:52:09Z")

</div>

Great article – thanks for sharing!

---

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [December 19, 2024, 7:31pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/16 "2024-12-19T19:31:35Z")

</div>

new fish is getting rusty 🙂

> **[Fish Shell 4.0 Beta Released With C++ Code Ported To Rust](https://www.phoronix.com/news/Fish-Shell-4.0-Beta)**
>
> The Fish Shell as the interactive, user-friendly command line shell debuted its 4.0 beta release ahead of the holidays

---

<div class="post-metadata">

**Author:** ![khem](https://community.tmpdir.org/user_avatar/community.tmpdir.org/khem/32/5_2.png) [@khem](https://community.tmpdir.org/u/khem)\
**Post date:** [December 29, 2024, 9:47pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/17 "2024-12-29T21:47:24Z")

</div>

Here is now a blogpost on Fish shell’s porting from C++ to rust experiences

> **[Fish 4.0: The Fish Of Theseus](https://fishshell.com/blog/rustport/)**
>
> A smart and user-friendly command line shell

---

<div class="post-metadata">

**Author:** ![cbrake](https://community.tmpdir.org/user_avatar/community.tmpdir.org/cbrake/32/3_2.png) [@cbrake](https://community.tmpdir.org/u/cbrake)\
**Post date:** [December 30, 2024, 4:40pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/18 "2024-12-30T16:40:12Z")

</div>

> [@khem](#):
>
> Here is now a blogpost on Fish shell’s porting from C++ to rust experiences

This is a very comprehensive comparison of C++ to Rust. This is a nice example of how things can be done incrementaly.

---

<div class="post-metadata">

**Author:** ![HamzaMateen](https://community.tmpdir.org/user_avatar/community.tmpdir.org/hamzamateen/32/3687_2.png) [@HamzaMateen](https://community.tmpdir.org/u/HamzaMateen)\
**Post date:** [May 2, 2025, 12:33pm UTC](https://community.tmpdir.org/t/nushell-notes/1401/19 "2025-05-02T12:33:17Z")

</div>

I started using Nushell exactly two weeks ago. I am very satisfied with it so far. I hope you are all doing very well. I will keep myself posted here.

First time posting here, don’t have much to share yet!
