Home Explore Blog CI



nushell

3rd chunk of `blog/2020-03-10-nushell_0_11_0.md`
c6080d3502b8bb15a5a35102c41f69b629419b3938164d8800000001000011ac
─────┼──────────────┼───────────────────────────────────────────────────────────────────────────────────────────────
   0 │ textview     │ Autoview of text data.
   1 │ pwd          │ Output the current working directory.
   2 │ sort-by      │ Sort by the given columns.
   3 │ tree         │ View the contents of the pipeline as a tree.
   4 │ du           │ Find disk usage sizes of specified items
   5 │ table        │ View the contents of the pipeline as a table.
```

## New column `rename` command (andrasio)

You can also now use the new `rename` command to rename a column to a new name.

```
❯ help commands | rename action description
─────┬──────────────┬───────────────────────────────────────────────────────────────────────────────────────────────
 #   │ action       │ description
─────┼──────────────┼───────────────────────────────────────────────────────────────────────────────────────────────
   0 │ append       │ Append the given row to the table
   1 │ autoview     │ View the contents of the pipeline as a table or list.
   2 │ average      │ Compute the average of a column of numerical values.
   3 │ binaryview   │ Autoview of binary data.
```

## Merge the `env` command into the `$nu` variable (sophiajt)

The `$nu` variable has grown to include values that were previously part of `env`, effectively merging the two into the `$nu` variable. This allows you to easily find out where the history file is stored, where config is stored, and where a good temp directory are all in one place:

```
❯ echo $nu.home-dir $nu.temp-dir $nu.config-path $nu.history-path
───┬──────────────────────────────────────────────────────────────────────
 # │ <value>
───┼──────────────────────────────────────────────────────────────────────
 0 │ C:\Users\sophiajt
 1 │ C:\Users\sophiajt\AppData\Local\Temp\
 2 │ C:\Users\sophiajt\AppData\Roaming\nu shell developers\nu\config.toml
 3 │ C:\Users\sophiajt\AppData\Local\nu shell developers\nu\history.txt
───┴──────────────────────────────────────────────────────────────────────
```

## The `format` command can now use column paths (andrasio)

The `format` command is a handy way of putting column data into a string for displaying, but it previously had the restriction that you couldn't use it to print out information that was deeper in the table. With 0.11.0, we've removed that restriction.

```
❯ open Cargo.toml | format "The edition is {package.edition}"
The edition is 2018
```

## Allow help to be printed with `-h` in more cases (rabisg0)

You should now be able to use `-h` to reach the help of a command in more cases than was previously allowed, making it a universal way to get to the help text.

## Improved documentation (coolshaurya, Amanita-muscaria, notryanb)

Documentation for `du`, `uniq`, `debug`, and plugin docs have all been improved in this release.

# Looking ahead

We're excited to continue to polish how Nu works to make it more reliable and more efficient. Of course, we're also working on adding new much-requested features like aliases in upcoming releases. If you'd like to help with aliases or with Nu in general -- even if you want to help with a part of the project outside of just coding -- we'd love to have you. Come visit us on [github](https://github.com/nushell/nushell) or the [discord](https://discord.gg/NtAbbGn).

Title: More New Commands, Variable Changes, and Documentation Updates in Nushell 0.11.0
Summary
Nushell 0.11.0 introduces the `rename` command for renaming columns. The `env` command has been merged into the `$nu` variable, providing a central location for system information. The `format` command can now use column paths, and the `-h` flag now more universally displays command help. Documentation for several commands has been improved. The team is working on future features like aliases.