Skip to content

Commit

Permalink
feat: 🎸 shell completion
Browse files Browse the repository at this point in the history
Closes: #10
  • Loading branch information
ZhaoQi99 committed Jun 15, 2024
1 parent 6d646b4 commit 79fe3e8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,35 @@ Options:
License is invalid after this date.
```

### Shell Completion

<details open>
<summary>Bash</summary>
Add this to ~/.bashrc:

```shell
eval "$(_PYENCRYPT_COMPLETE=bash_source pyencrypt)"
```
</details>

<details>
<summary>Zsh</summary>
Add this to ~/.zshrc:

```shell
eval "$(_PYENCRYPT_COMPLETE=zsh_source pyencrypt)"
```
</details>

<details>
<summary>Fish</summary>
Add this to ~/.config/fish/completions/foo-bar.fish:

```shell
eval (env _PYENCRYPT_COMPLETE=fish_source pyencrypt)
```
</details>

## Example

### Encrypt
Expand Down

0 comments on commit 79fe3e8

Please sign in to comment.