From 3a5ee8095b1b97bef0018417c3f142bfc8d81a08 Mon Sep 17 00:00:00 2001 From: Qi Zhao Date: Sat, 15 Jun 2024 17:49:29 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20shell=20completion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✅ Closes: #4 --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/README.md b/README.md index 218e44d..fa661c3 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,35 @@ Options: License is invalid after this date. ``` +### Shell Completion + +
+Bash +Add this to ~/.bashrc: + +```shell +eval "$(_PYENCRYPT_COMPLETE=bash_source pyencrypt)" +``` +
+ +
+Zsh +Add this to ~/.zshrc: + +```shell +eval "$(_PYENCRYPT_COMPLETE=zsh_source pyencrypt)" +``` +
+ +
+Fish +Add this to ~/.config/fish/completions/foo-bar.fish: + +```shell +eval (env _PYENCRYPT_COMPLETE=fish_source pyencrypt) +``` +
+ ## Example ### Encrypt