Home Explore Blog CI



nushell

3rd chunk of `blog/2021-11-16-nushell_0_40.md`
bdabe51cb689b7a3315db570fff5dcdaa7fb543c412045d400000001000011ed
───┴────────────────┴───────────┴───────────┴───────────┴──────┴────────────────
```

Finally, it'd be nice to be able to have real file sizes for the middle columns, so let's convert the numbers into Nushell's filesize type:

```
> df | detect columns | drop column | into filesize 1K-blocks Used Available
───┬────────────────┬───────────┬──────────┬───────────┬──────┬────────────────
 # │   Filesystem   │ 1K-blocks │   Used   │ Available │ Use% │    Mounted
───┼────────────────┼───────────┼──────────┼───────────┼──────┼────────────────
 0 │ udev           │    8.1 MB │      0 B │    8.1 MB │ 0%   │ /dev
 1 │ tmpfs          │    1.6 MB │   2.1 KB │    1.6 MB │ 1%   │ /run
 2 │ /dev/nvme1n1p2 │  490.7 MB │ 346.1 MB │  119.6 MB │ 75%  │ /
 3 │ tmpfs          │    8.2 MB │ 251.3 KB │    7.9 MB │ 4%   │ /dev/shm
 4 │ tmpfs          │    5.1 KB │      4 B │    5.1 KB │ 1%   │ /run/lock
 5 │ tmpfs          │    8.2 MB │      0 B │    8.2 MB │ 0%   │ /sys/fs/cgroup
 6 │ /dev/nvme0n1p1 │  508.9 KB │ 211.7 KB │  297.2 KB │ 42%  │ /boot/efi
 7 │ tmpfs          │    1.6 MB │    128 B │    1.6 MB │ 1%   │ /run/user/1000
 8 │ /dev/nvme0n1p2 │  238.8 MB │ 136.9 MB │   89.7 MB │ 61%  │ /media/st/Data
───┴────────────────┴───────────┴──────────┴───────────┴──────┴────────────────
```

In just a couple steps, we've converted the text-based table into tabular data we can use just like any other Nushell command. To make this easy to do in the future, we can alias `df` to do these steps:

```
> alias df = (^df | detect columns | drop column | into filesize 1K-blocks Used Available)
```

## Smaller binaries (fdncred)

The size of the Nushell release binaries has come up as regular feedback from Nushell users. "Why does the shell have to be so big?" And we've heard you!

Today's release now uses a combination of `strip` and `upx` to bring considerable savings in binary size. The Linux release (plugins incl.) has dropped from 475mb to 58mb(!!), making it **88% smaller**. We're seeing similar improvements in the sizes of the macOS and Windows releases.

## Additional fixes

- Upgraded [polars dataframe support](https://github.com/nushell/nushell/pull/4122) (nmandery)
- Fixed a [panic during parsing](https://github.com/nushell/nushell/pull/4107) (ahkrr)
- File matching between `rm` and `ls` is now [more consistent](https://github.com/nushell/nushell/pull/4099) (yogi)

# Engine-q progress

We've also hit a milestone with engine-q: now over 100 commands have been ported to engine-q! Special thanks to onthebridgetonowhere, CBenoit, luccasmmg, stormasm, and aslynatilla for their work in these ports since the last Nushell release.

We've also added support for [`$config`](https://github.com/nushell/engine-q/pull/332), [`$in`](https://github.com/nushell/engine-q/pull/309), a new [record syntax](https://github.com/nushell/engine-q/pull/326), [`ls` colors](https://github.com/nushell/engine-q/pull/340), [environment variable module imports](https://github.com/nushell/engine-q/pull/331), and much more. While engine-q isn't quite ready to be tested as a daily driver, with each day its capabilities and stability grows.

If you're interested in how some of the upcoming support for parallel processing in engine-q works, contributor Sophia [made a video explaining it](https://www.youtube.com/watch?v=3o8b_QcrFHc).

# Looking forward

We're excited to see Nushell continue to gain more ability to work with data in easier ways as well as doing so in as a much smaller binary. Progress on engine-q continues to grow, and covers a large amount of ground in the engine internals, porting commands, plugin support, modules, and more.

If you're interested in helping out, come [join us on the discord](https://discord.gg/NtAbbGn). We're more than happy to help answer questions and point you towards on-going projects!

Title: Nushell Release Notes: Improved 'df' Handling, Smaller Binaries, and Engine-q Progress
Summary
This section details improvements in the latest Nushell release, including an example of how to alias the 'df' command to process its output more effectively. The release also features significantly smaller binaries through the use of 'strip' and 'upx'. Additionally, the update highlights progress on the engine-q project, with over 100 commands ported and new features added, alongside bug fixes and dependency updates.