
---
url: /mod/path/unshift.md
---
# x path unshift

Add a new directory to the beginning of the PATH variable

## Examples

Add the /usr/bin directory to the front of the PATH variable

```sh
x path unshift /usr/bin
```

## Usage

```sh
x path unshift <#1>
```

## Arguments

| Argument | Description |
| ------- | ------- |
| `#1` | Directory |
