m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/completion/pass.zsh-completion
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2014-04-17 14:30:05 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2014-04-17 14:40:56 +0200
commit658fe0ac863a4d1c62b3c64d2ed9c92981274bd4 (patch)
treeb9a27d105afa122a13ac57f7bf15142843c502aa /src/completion/pass.zsh-completion
parent1763e2d0347c38aa8f7167f6fcfd4401fd6995dc (diff)
mv: Add pass mv/rename support
Based-on-work-by: Matthieu Weber <mweber@free.fr> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/completion/pass.zsh-completion')
-rw-r--r--src/completion/pass.zsh-completion7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/completion/pass.zsh-completion b/src/completion/pass.zsh-completion
index 90045f0..b451fbf 100644
--- a/src/completion/pass.zsh-completion
+++ b/src/completion/pass.zsh-completion
@@ -48,6 +48,12 @@ _pass () {
"--clip[copy password to the clipboard]"
_pass_complete_entries_with_subdirs
;;
+ mv|rename)
+ _arguments : \
+ "-f[force rename]" \
+ "--force[force rename]" \
+ _pass_complete_entries_with_subdirs
+ ;;
rm)
_arguments : \
"-f[force deletion]" \
@@ -83,6 +89,7 @@ _pass () {
"insert:Insert a new password"
"generate:Generate a new password using pwgen"
"edit:Edit a password with \$EDITOR"
+ "mv:Rename the password"
"rm:Remove the password"
"git:Call git on the password store"
"version:Output version information"