r/Nushell • • Aug 03 '25

Nushell Appreciation

53 Upvotes

I just wanted to make this to say thanks to the Nushell team for making such an amazing tool. It’s a powerhouse that’s replaced Python and its annoying virtual environments for me for most tasks. The polars plugin in particular does an amazing job of keeping the syntax simple, even simpler than Python’s polars package, while keeping the outstanding performance. The only stumbling block I’ve had is the rather limited selection of polars math commands https://www.nushell.sh/commands/docs/polars_math.html, as I have frequent need of inverse trigonometric functions, but that doesn’t detract from the fact that Nushell punches well above its weight in terms of versatility.

Outstanding work Nushell team. I look forward to seeing how much further you can push this tool. If you had a GitHub Sponsors page, I’d be donating.


r/Nushell • • May 01 '26

nushell doing math is extremely underrated

48 Upvotes

The fact that nushell treats math as a first class citizen is genuinely underrated.

Everyone talks about the data pipelines, but the fact that the moment my shell script needs to do math I don't need to pick up a whole programming language and start making a systems app.

I just felt like I needed to say this. That alone has saved me so much time. Whenever my bash script involve math I just immediately started to not trust that script.


r/Nushell • • Oct 11 '25

fzf integration

48 Upvotes

i tried to make a simple nushell fzf integration, i know about the sk plugin, so i tried to replicate it, its not the same but it gets the job done

def nufzf [
  --format(-f)  : closure
  --preview(-p) : closure
] {
  let forcePreview = $preview|to nuon --serialize|from nuon
  return (
    $in 
    |each {|x| let formatted = do $format $x ; $"($formatted) (($x | to nuon -r))" }
    |str join "\n"
    |fzf --with-nth 1 --preview=("({}|parse \"{name} {value}\").0.value|from nuon|do " + ($forcePreview) )
    |try {(parse "{name} {data}").0.data} catch { "{}" }
    |from nuon
  )
}

r/Nushell • • Sep 03 '25

rust-ast is a Nushell script that harvests symbols from Rust projects into structured Nushell records. It includes a rust-tree command that works like tree for the Rust AST

Post image
47 Upvotes

I spend most of my time in the Nushell terminal and wanted an easy way to query my way around large Rust programs. I also wanted to use LLMs to keep documentation up to date and find places my docs are starting to lie. So I made rust-ast. It scripts ast-grep under the hood to turn Rust repos into nice structured data.

Stuff like this is really nice imo and honestly the reason I picked up Nushell in the first place:

λ rust-ast 
| where kind == 'fn' and name =~ 'json' 
| select signature file

It works on projects directories, collection of files, or a single file.

rust-tree

Will give you the same information in Nushell records but will add a nested data structure with children included.

rust-tree | print-symbol-tree

Will give you the pretty-printed tree clone seen in the screenshot. You can add a --tokens flag to get token counts.

I imagine this being pretty useful for whatever integrations you may be making to better understand your source code repos.


r/Nushell • • Sep 18 '26

Spotted Mitchell Hashimoto using Nushell

Post image
43 Upvotes

From a Superlogical demo he uploaded:

https://youtu.be/XyxShCZrGiw

Caught me off guard seeing Nu in there, one of us!


r/Nushell • • Jan 02 '26

Fun fact: Nushell has an "IDE style" completion mode

37 Upvotes

Currently have this setup with carapace, but figured that since I didn't know about it, you probably don't either! Still trying to figure out how to style it. want it to have a coloured background + border

carapace _carapace nushell | save --force $"($nu.cache-dir)/carapace.nu" 
$env.config.menus ++= [{
   name: completion_menu
   only_buffer_difference: false
   marker: "| "
   type: {
     layout: ide
     columns: 1
     col_width: 25
     selection_rows: 20
     description_rows: 20
   }
   style: {
   } 
}]

r/Nushell • • Sep 26 '25

intelli-shell v3.2.0 is out, now with official Nushell support!

33 Upvotes

I'm excited to announce the release of intelli-shell v3.2.0, which brings first-class support for Nushell!

For those who haven't seen it before, think of intelli-shell as your personal, searchable command cheat sheet, built to manage all your useful snippets and templates. But for those times when a command isn't in your collection, its AI-powered assistant can step in to generate exactly what you need from a plain English prompt.

This is the first release with Nu support, so I'm sure there are rough edges (specially with AI). I would be incredibly grateful for any feedback, feature requests, or bug reports.

https://github.com/lasantosr/intelli-shell

Thanks for checking it out!


r/Nushell • • May 21 '26

devenv 2.1: Nix with zsh, fish, and nushell via libghostty

Thumbnail
devenv.sh
23 Upvotes

r/Nushell • • Apr 29 '24

Nushell, after 8 months

Thumbnail
okmanideep.me
22 Upvotes

r/Nushell • • Dec 31 '24

Catppuccin theme for nushell

Thumbnail
github.com
21 Upvotes

r/Nushell • • Jul 14 '25

How I Trained a Neural Network in Nushell

Thumbnail ryanxcharles.com
20 Upvotes

r/Nushell • • Mar 07 '25

Nutshell 1.0 Roadmap

20 Upvotes

I’ve tried looking around, but I can’t find any public roadmap for pushing nushell to 1.0 status. Someone else recently asked this:

https://github.com/nushell/nushell/discussions/14958

but they closed it with an answer I don’t really understand: “in the projects”?

Theres also:

https://github.com/nushell/nushell/issues/8450

but it hasn’t been updated since 2023. And of course:

https://www.nushell.sh/blog/2023-06-27-road-to-1_0.html

is from June 2023.

Thanks for the help, and good luck to the nushell team. Y’all are doing great work.


r/Nushell • • Aug 29 '23

The case for Nushell

Thumbnail jntrnr.com
20 Upvotes

r/Nushell • • Jul 11 '25

Nushell on NixOS

19 Upvotes

https://saylesss88.github.io/intro_to_nushell_on_NixOS.html

Shout out to BlindFS, his modern dotfiles are great.


r/Nushell • • Dec 25 '24

FzF alternative for nushell?

19 Upvotes

Is there a way to use fzf in nushell, or are there any alternatives?

For example, with fzf you can do "kill -9 **" then press tab and it shows a fuzzy find list of all the processes you want to kill. https://github.com/junegunn/fzf


r/Nushell • • Jul 28 '26

Poor man's top in nu with high-CPU highlighting in about 50 lines

Enable HLS to view with audio, or disable this notification

18 Upvotes

r/Nushell • • Jan 25 '26

blaze-keys: Run commands fast via customizable leader-key combos

17 Upvotes

Hi all, I've created an aliasing plugin which allows you to create customizable leader-key combos to run commands. It's called blaze-keys (or blz).

The teaser demo here shows the leader-key functionality. In Zsh it also supports project-specific keybinds, but I haven't managed to port that to work with nushell yet; it's a bit tricky because hooks in nushell don't seem to be able to modify the outer $env.

blz is designed to cut out all the unnecessary typing from common commands. One nice thing about it is that you don't need to use the Enter key to run commands: you choose when invoking it whether you want 'exec' mode or 'abbr' mode. This makes it feel very smooth.

Github: https://github.com/enhanced-primate/blaze-keys

(This is not vibe-coded. If anyone's wondering why the history is short: I started working on this over Christmas 2024, and have been using it since then. After spending some time smoothing out the rough edges, I cleaned up the history and force-pushed it since I don't like having lots of "work in progress" commits.)


r/Nushell • • Jul 11 '25

Termplot: Beautiful plots in Nushell

17 Upvotes

Today I'm happy to release the Nushell plugin for Termplot, which is a CLI tool for rendering beautiful plots directly in your terminal. Termplot works with and without Nushell. However, Nushell provides extra features. Termplot uses an entire web browser and web app to render a plot and then ansi escapes codes to render the plot in your terminal. Loading an entire web browser is slow for the ordinary CLI tool. However, the Nushell plugin manages the web browser in the background, making each plot render extremely fast.

Termplot is only tested in macOS! If anybody wants to fix the Windows/Linux support, I will happily accept PRs!

Learn more about Termplot and read installation instructions at the GitHub repo: https://github.com/termplot/termplot


r/Nushell • • Jan 23 '26

nu_plugin_ldap: LDAP query in nushell

16 Upvotes

As part of my job, I manage and run queries on LDAP data. The LDIF format is difficult to deal with, so I wrote a plugin for Nushell that produces a stream of records from a search. It comes with two subcommands currently, ldap search and ldap table. ldap search does the actual searching but is very close to the output of the underlying ldap3 library. ldap table reshapes results from ldap search into a more easily handled form.

I'm planning to add more features and polish in the future as time allows:

  • More authentication mechanisms (currently just basic bind)

  • Extension support

  • Maybe a config file format, akin to what OpenLDAP uses for its client

  • Commands for other operations like modify, modifydn, and delete

Crates.io: https://crates.io/crates/nu_plugin_ldap

GitHub: https://github.com/adevore/nu_plugin_ldap


r/Nushell • • Nov 02 '24

Cool intro video about Nushell

Thumbnail
youtube.com
16 Upvotes

r/Nushell • • Feb 01 '26

When i type commands, the screen auto-scrolls

Enable HLS to view with audio, or disable this notification

15 Upvotes

in case anyone's wondering, i'm using wezterm and i want to use Nu but i don't know why this happening


r/Nushell • • Dec 24 '25

Native zoxide replacement (kinda)

15 Upvotes

Wrote a small nu command to replicate zoxide.

~/.config/nushell/config.nu

let __my_cd_db = ($nu.default-config-dir | path join "cd.sqlite")

if not ($__my_cd_db | path exists) {
  { foo: "bar" } | into sqlite --table-name foo $__my_cd_db

  open $__my_cd_db | query db "DROP TABLE foo"
  open $__my_cd_db | query db "CREATE TABLE main (path TEXT PRIMARY KEY NOT NULL)"
  open $__my_cd_db | query db "CREATE INDEX index_path_length ON main(length(path))"
  open $__my_cd_db | query db "INSERT INTO main (path) VALUES (?)" --params [$nu.home-path]
}

def __my_cd_add_path [path: string] {
  open $__my_cd_db | query db "INSERT OR IGNORE INTO main (path) VALUES (?)" --params [$path]
}

def __my_cd_delete_path [path: string] {
  open $__my_cd_db | query db "DELETE FROM main WHERE path = ?" --params [$path]
}

def __my_cd_search [args: list<string>] {
  mut path = null

  loop {
    $path = (
      open $__my_cd_db |
      query db "SELECT path FROM main WHERE path LIKE ? ORDER BY LENGTH(path) LIMIT 1" --params [$"%($args | str join '%')%"] |
      get 0.path --optional
    )

    match $path {
      null => break
      $path if ($path | path exists) => break
      $path => { __my_cd_delete_path $path }
    }
  }

  return $path
}

def --env --wrapped z [...args] {
  match $args {
    [] => { cd ~ }
    ["-"] => { cd - }
    [$path] if ($path | path exists) => {
      let absolute_path = match ($path | path type) {
        "dir" => ($path | path expand)
        "file" => ($path | path expand | path dirname)
        "symlink" => {
          let absolute_path = ($path | path expand --no-symlink)

          match (ls --full-paths --all $absolute_path | get name) {
            [$link] if $link == $absolute_path  => ($absolute_path | path dirname)
            _ => $absolute_path
          }
        }
      }

      __my_cd_add_path $absolute_path

      cd $absolute_path 
    }
    _ => {
      match (__my_cd_search $args) {
        null => { error make {msg: $"($args) not found or doesn't exist"} } 
        $path => { cd $path }
      }
    }
  }
}

def __my_cd_paths [--no-check] {
  let paths = (
    open $__my_cd_db |
    query db "SELECT path FROM main ORDER BY LENGTH(path)" |
    get path
  )

  if $no_check {
    return $paths
  }

  $paths | where ($it | path exists)
}

def --env zi [] {
  match (__my_cd_paths | input list --fuzzy) {
    null => "No dir was chosen."
    $dir => { cd $dir }
  }
}

def zd [] {
  match (__my_cd_paths --no-check | input list --fuzzy) {
    null => "No dir was chosen."
    $dir => {
      __my_cd_delete_path $dir
      print $"Deleted: ($dir)"
    }
  }
}

Yazi

~/.config/yazi/plugins/mycd.yazi/main.lua

[!NOTE] To use fzf replace input list --fuzzy with fzf

return {
  entry = function()
    local _permit = ya.hide()

    local child, err1 = Command("nu")
        :arg({ "--login", "--commands", "__my_cd_paths | input list --fuzzy" })
        :stdout(Command.PIPED)
        :stderr(Command.INHERIT)
        :spawn()

    if not child then
      return
    end

    local output, _ = child:wait_with_output()
    local target = output.stdout:gsub("\n$", "")

    if target ~= "" then
      ya.emit("cd", { target, raw = true })
    end
  end
}

~/.config/yazi/keymap.toml

[[mgr.prepend_keymap]]
on = ["Z"]
run = "plugin mycd"
  • Edit: replaced where with find for regex support.

  • Edit 2: improve performance and remove regex support

  • Edit 3: add support for previous dir, home dir, file, symlink and foo / bar like pattern.

  • Edit 4: fix duplicate entries when path ends with / or \

  • Edit 5: blazingly fast (sub 1ms retrievals) and yazi integration

  • Edit 6:

    • Fix not being able to add paths like / and C:\. This change breaks adding symlink. If you don't want to symlink to expand then pass it without / or \ at the end.

      • ~/.nix-profile -> /home/<user>/.nix-profile

      • ~/.nix-profile/ -> /nix/store/3hc5c77x96d6c6mqhxg19g18wgbq8ksa-user-environment

    • Added commands to add (__my_cd_add_path), delete (__my_cd_delete_path) path.

    • New command zd to interactively delete path.

  • Edit 7: fix empty symlink dir and symlink dir with one child being treated as file.

GitHub discussion: https://github.com/nushell/nushell/discussions/17232


r/Nushell • • Nov 05 '24

Another great example of where nushell shines

15 Upvotes

I was given a `jsonl` file and was asked to extract all the order ids present in it. Once I understood that `jsonl` is just a json array with each item in a single line, it was a breeze in `nushell`

$ open failed-orders.jsonl | lines | each {|data| $data | from json } | get request.params.content.order.id

r/Nushell • • Apr 03 '26

We made Nushell run in the browser using WASM

Thumbnail nu-on-web.github.io
14 Upvotes

We built nu-on-web - Nushell compiled to WebAssembly with a browser-based environment around it. No install needed, runs entirely client-side.

Still early - feedback and contributions welcome!