> For the complete documentation index, see [llms.txt](https://manual.dxable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.dxable.com/1password/completion.md).

# completion

1Password CLI のシェル補完情報を生Createします。

```
$ op completion <shell> [flags]
```

Bash、Zsh、fish、または PowerShell を使う場合は、1Password CLI にシェル補完を追加できます。補完が読み込まれたら、コマンドの入力を開始してから Tab キーを押すと、使用可能なコマンドとオプションが表示されます。

**Load shell completion information for Bash**

Bash の補完情報を常に読み込むには、 `.bashrc`ファイルに以下を追加します。

```
$ source <(op completion bash)
```

Bash でシェル補完を使うには、`bash-completion`パッケージが必要です。

**Load shell completion information for Zsh**

Zsh の補完情報を常に読み込むには、 `.zshrc`ファイルに以下を追加します。

```
$ eval "$(op completion zsh)"; compdef _op op
```

**Load shell completion information for fish**

fish の補完情報を常に読み込むには、 `.fish`ファイルに以下を追加します。

```
$ op completion fish | source
```

**Load shell completion information for PowerShell**

PowerShell の補完情報を常に読み込むには、`.ps1`ファイルに以下を追加します。

```
PS C: \> op completion powershell | Out-String | Invoke-Expression
```

{% hint style="info" %}
**注記**&#x20;

PowerShell でシェル補完を使うには、スクリプトの実行を有効にする必要があります。そのためには、管理者として PowerShell ウィンドウを起動し、次のコマンドを実行します。
{% endhint %}

```
PS C: \> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.dxable.com/1password/completion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
