Skip to content

Commit

Permalink
update shell completion docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gruebel committed Nov 16, 2024
1 parent 6eafa17 commit 45e003d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ pip3 install --user policy_sentry
To enable Bash completion, put this in your `.bashrc`:

```bash
eval "$(_POLICY_SENTRY_COMPLETE=source policy_sentry)"
eval "$(_POLICY_SENTRY_COMPLETE=bash_source policy_sentry)"
```

To enable ZSH completion, put this in your `.zshrc`:

```
eval "$(_POLICY_SENTRY_COMPLETE=source_zsh policy_sentry)"
eval "$(_POLICY_SENTRY_COMPLETE=zsh_source policy_sentry)"
```

### Step 1: Create the Template
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ pip3 install --user policy_sentry
To enable Bash completion, put this in your `.bashrc`:

```bash
eval "$(_POLICY_SENTRY_COMPLETE=source policy_sentry)"
eval "$(_POLICY_SENTRY_COMPLETE=bash_source policy_sentry)"
```

To enable ZSH completion, put this in your `.zshrc`:

```
eval "$(_POLICY_SENTRY_COMPLETE=source_zsh policy_sentry)"
eval "$(_POLICY_SENTRY_COMPLETE=zsh_source policy_sentry)"
```

0 comments on commit 45e003d

Please sign in to comment.