Home Explore Blog CI



nushell

1st chunk of `blog/2020-04-21-nushell_0_13_0.md`
1e864b0ff7eaba84d6fb6afcbb842fc7c8a5979de61781630000000100000df9
---
title: Nushell 0.13.0
author: The Nu Authors
author_site: https://twitter.com/nu_shell
author_image: https://www.nushell.sh/blog/images/nu_logo.png
excerpt: We're excited to release version 0.13.0 of Nu! This is by *far* one the the biggest releases, yet. Let's dive in!
---

# Nushell 0.13.0

Nushell, or Nu for short, is a new shell that takes a modern, structured approach to your commandline. It works seamlessly with the data from your filesystem, operating system, and a growing number of file formats to make it easy to build powerful commandline pipelines.

We're excited to release version 0.13.0 of Nu! This is by _far_ one the the biggest releases, yet. Let's dive in!

# Where to get it

Nu 0.13.0 is available as [pre-built binaries](https://github.com/nushell/nushell/releases/tag/0.13.0) or from [crates.io](https://crates.io/crates/nu). If you have Rust installed you can install it using `cargo install nu`.

If you want more goodies, you can install `cargo install nu --features=stable`.

As part of this release, we also publish a set of plugins you can install and use with Nu. To install, use `cargo install nu_plugin_<plugin name>`.

# What's New

## Aliases (sophiajt)

Yes, it's true. Nu now supports aliases so that those long pipelines now have new life as concise, reusable commands.

```
> alias myecho [msg] { echo $msg }
> myecho "hello world!"
hello world!
```

The alias has a name, a list of optional parameters, and the block that will execute. This block can refer to the parameters using their variable names.

## Startup commands (sophiajt)

With aliases, it's helpful to be able to start up Nu with your favorite aliases ready to go. To this end, we've now added the `startup` config variable. Adding a table of strings to this config variable enables you to run all of these commands as Nu starts up.

```
> config --set [startup ["alias myecho [msg] { echo $msg }"]]
```

You can read more about setting `config` variables in [the book](https://www.nushell.sh/book/configuration.html)

## Multi-dot paths (quebin31)

In some shells, you can use multiple dots to mean go back even more directories. In addition to the common `..`, to go back to the previous directory, you can now also use `...` to go back two directories, `....` to go back three, and so on.

## Semicolon support (sophiajt)

A long standing annoyance when using Nu day in and day out is that you can't compose two different pipelines together. Sometimes you want to run a build, and then run the output of the build if it succeeds.

In Bash, you might do something like this:

```
> make && ./run/my/app
```

If make succeeds, then your app runs. We're introducing the ';' separator which does this (beware bash users that this ';' will stop if the left-hand fails). You can write the above bash line as this in Nu 0.13.0:

```
> make; ./run/my/app
```

Note that commands that you may be used to printing to the terminal when you run them directly may not print anything when used on the left-hand side of the `;`. This is because the data comes out and, being structured, it just gets consumed before it's viewed. If you prefer to see the output of a command on the left of the `;`, you can pass it through `autoview` to do this for you:

```
> ls | autoview ; echo "done"
```

## Math operations (sophiajt)

Wish you had a calculator or want to do a quick computation on something in your table? With 0.13.0, you can now switch into "math mode" and do a quick calculation. To switch into math mode, use the `=` operator as the command name.

```
> = 3 + 4
7
```

Title: Nushell 0.13.0 Release Notes
Summary
Nushell 0.13.0 is a major release featuring aliases, startup commands, multi-dot paths, semicolon support for composing pipelines, and math operations. Aliases allow users to create reusable commands, while startup commands let users configure Nu with their favorite aliases. Multi-dot paths enable easy navigation through multiple directories, and semicolon support allows for composing two different pipelines together. Math operations allow users to switch into 'math mode' and do a quick calculation.