Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Completions

Shell completion scripts generated from a Parser: Shell names the shells, and Parser.completions writes the script.

Source: runtime/cli/completions.pep

Shell

enum Shell

A shell that Parser.completions writes a completion script for.

Cases

Bash

Bash

GNU Bash: source the script, or put it in ~/.local/share/bash-completion/completions/NAME.

Zsh

Zsh

Zsh: put the script in a directory on $fpath as _NAME.

Fish

Fish

fish: put the script in ~/.config/fish/completions/NAME.fish.

Powershell

Powershell

PowerShell (powershell on a command line): dot-source the script from your profile.