2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: g
|
|
|
|
layout: command
|
2022-03-04 13:10:09 +01:00
|
|
|
version: 0.59.1
|
2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
Switch to a given shell.
|
|
|
|
|
|
|
|
## Signature
|
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
```> g (shell_number)```
|
2022-02-14 03:22:51 +01:00
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
2022-02-20 02:13:33 +01:00
|
|
|
- `shell_number`: shell number to change to
|
2022-02-24 13:17:05 +01:00
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
|
|
|
Make two directories and enter new shells for them, use `g` to jump to the specific shell
|
|
|
|
```shell
|
|
|
|
> mkdir foo bar; enter foo; enter ../bar; g 1
|
|
|
|
```
|
|
|
|
|
|
|
|
Use `shells` to show all the opened shells and run `g 2` to jump to the third one
|
|
|
|
```shell
|
|
|
|
> shells; g 2
|
|
|
|
```
|