Home Explore Blog CI



nushell

3rd chunk of `blog/2020-06-09-nushell_0_15_0.md`
f07a0f6a7e1fa70e200ff8cf4a68fb50ceb51eff6b8bfef40000000100000937
You can now easily parse decimal (sometimes called real or floating point numbers) using the new `str` subcommand.

### `fetch` now can take username/password (he4d)

Like its counterpart `post`, `fetch` can now accept a username/password to login to fetch URL contents.

### `average` now works over tables (andrasio)

In addition to using `average` on a column, you can now run it over a whole table.

### `start` now supports glob paths (arashout)

You can now pass multiple values to `start` at one time using the new glob support.

```
> start file*.rs
```

### Plugins no longer scan whole PATH (sophiajt, fdncred)

As we looking into startup times, we saw that scanning the whole PATH for plugins is quite costly. Even more, few people had used the feature to put plugins in a different directory than the `nu` application itself.

With 0.15, by default we will only look in the directory of the `nu` application. You can still manually store your plugins elsewhere by adding directories to the new "plugin_dirs" config setting.

### `echo` now will iterate over a range (sophiajt)

```
> echo 1..3
───┬───
 0 │ 1
 1 │ 2
 2 │ 3
───┴───
```

### `where` command speedups (sophiajt)

We did some work to optimize how command blocks are executed, which helps to speed up `where` quite a bit for long running queries.

### `du` can now be canceled with ctrl-c (JosephTLyons)

For those long-running `du` runs that you want to stop short, you can now use `ctrl-c` to exit back to Nu.

### `with-env` shorthand now works with quoted strings as well (k-brk)

Now support: passing a string as a value in environment shorthands:

```
> FOO="My Bar" command arg1 arg2
```

### Add config option for "rm_always_trash" (filalex77)

If you'd prefer to always `rm` to the recycle bin instead of permanently deleting, you can enable the new "rm_always_trash" config setting.

### `parse` now also takes a `--regex` flag (filalex77)

For when you need to do a bit more serious parsing work, you can now use regex from inside of the `parse` command.

### Various improvements to auto-pivot (fdncred, Samboy218)

Previously, we always auto-pivoted the single row. Now, you can configure whether or not you want the row to pivot before it's displayed, including a new heuristic mode that will attempt to only pivot the row if necessary.

Title: Nushell 0.15.0: Enhanced Commands and Configuration Options
Summary
This section covers various updates and improvements to Nushell 0.15.0 commands. It includes the addition of 'str to-decimal', username/password support for 'fetch', table support for 'average', glob paths support for 'start', and plugin directory configuration. Other improvements include 'echo' iteration over ranges, 'where' command speedups, 'du' cancellation with ctrl-c, quoted strings for 'with-env', 'rm_always_trash' config option, `--regex` flag for 'parse', and enhancements to auto-pivot.