From defde7717af3be7781481786ab912bf0e8dcfbba Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sun, 8 Dec 2024 18:36:17 +0100 Subject: [PATCH] add ansible-encrypt function --- .../fish/private_functions/ansible-encrypt-to-clipboard.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 dot_config/fish/private_functions/ansible-encrypt-to-clipboard.fish diff --git a/dot_config/fish/private_functions/ansible-encrypt-to-clipboard.fish b/dot_config/fish/private_functions/ansible-encrypt-to-clipboard.fish new file mode 100644 index 0000000..4d9dd2a --- /dev/null +++ b/dot_config/fish/private_functions/ansible-encrypt-to-clipboard.fish @@ -0,0 +1,4 @@ +function ansible-encrypt-to-clipboard +read -s val +ansible-vault encrypt_string -- "$val" | grep -v Encryption | pbcopy +end