summaryrefslogtreecommitdiff
path: root/zsh/functions/_op-ssh-add
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2020-09-06 10:31:27 +0100
committerGrégoire Duchêne <gduchene@awhk.org>2020-09-06 10:38:36 +0100
commit72973b0fc01f0adb7b4dadddd7e85496898e6fb5 (patch)
tree08424d85008546e9ee2ec221161455c55266f883 /zsh/functions/_op-ssh-add
parentbad0d87c2888b023cca7cd180e63b514e68b8e92 (diff)
zsh: Add op-ssh-add function
op-ssh-add is a small wrapper around ssh-add that retrieves the SSH private key password from 1Password before passing it to ssh-add.
Diffstat (limited to 'zsh/functions/_op-ssh-add')
-rw-r--r--zsh/functions/_op-ssh-add3
1 files changed, 3 insertions, 0 deletions
diff --git a/zsh/functions/_op-ssh-add b/zsh/functions/_op-ssh-add
new file mode 100644
index 0000000..2c2183e
--- /dev/null
+++ b/zsh/functions/_op-ssh-add
@@ -0,0 +1,3 @@
+#compdef op-ssh-add=ssh-add
+
+_ssh $@