> For the complete documentation index, see [llms.txt](https://jays-organization-22.gitbook.io/splitunknown/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jays-organization-22.gitbook.io/splitunknown/shellstabilize.md). Agents can also search and read this documentation through its [MCP server](https://jays-organization-22.gitbook.io/splitunknown/~gitbook/mcp).

# ShellStabilize

#### With Python

```python3
python3 -c "import pty;pty.spawn('/bin/bash')"
```

`ctrl + z`

```bash
stty raw -echo;fg
```

```bash
stty rows 47 columns 211
```

```bash
export TERM=xterm-256color
```

```bash
alias l="ls -lath --color"
```

oneliner

```bash
stty rows 47 columns 211;export TERM=xterm-256color;alias l="ls -lath --color"
```

#### With script

```bash
script /dev/null -c bash
```

```bash
stty raw -echo; fg; stty rows 47 columns 211; export TERM=xterm-256color; alias l='ls -lath --color'
```
