Skip to content

Commit 79fe3e8

Browse files
committed
feat: 🎸 shell completion
Closes: #10
1 parent 6d646b4 commit 79fe3e8

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,35 @@ Options:
140140
License is invalid after this date.
141141
```
142142

143+
### Shell Completion
144+
145+
<details open>
146+
<summary>Bash</summary>
147+
Add this to ~/.bashrc:
148+
149+
```shell
150+
eval "$(_PYENCRYPT_COMPLETE=bash_source pyencrypt)"
151+
```
152+
</details>
153+
154+
<details>
155+
<summary>Zsh</summary>
156+
Add this to ~/.zshrc:
157+
158+
```shell
159+
eval "$(_PYENCRYPT_COMPLETE=zsh_source pyencrypt)"
160+
```
161+
</details>
162+
163+
<details>
164+
<summary>Fish</summary>
165+
Add this to ~/.config/fish/completions/foo-bar.fish:
166+
167+
```shell
168+
eval (env _PYENCRYPT_COMPLETE=fish_source pyencrypt)
169+
```
170+
</details>
171+
143172
## Example
144173

145174
### Encrypt

0 commit comments

Comments
 (0)