File: shell_completion.md

package info (click to toggle)
toot 0.51.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,108 kB
  • sloc: python: 9,284; makefile: 41
file content (31 lines) | stat: -rw-r--r-- 610 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Shell completion

> Introduced in toot 0.40.0

Toot uses [Click shell completion](https://click.palletsprojects.com/en/8.1.x/shell-completion/) which works on Bash, Fish and Zsh.

To enable completion, toot must be [installed](./installation.html) as a command and available by ivoking `toot`. Then follow the instructions for your shell.

**Bash**

Add to `~/.bashrc`:

```
eval "$(_TOOT_COMPLETE=bash_source toot)"
```

**Fish**

Add to `~/.config/fish/completions/toot.fish`:

```
_TOOT_COMPLETE=fish_source toot | source
```

**Zsh**

Add to `~/.zshrc`:

```
eval "$(_TOOT_COMPLETE=zsh_source toot)"
```