From 0c5b0b48026599ddb19da22712d204f4328e10da Mon Sep 17 00:00:00 2001 From: David Aizenberg Date: Mon, 23 Jan 2023 16:48:35 +0000 Subject: [PATCH] sync --- .zshrc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 79eb96d..bd6a80d 100644 --- a/.zshrc +++ b/.zshrc @@ -1,6 +1,6 @@ ################################ - # 2022. WTFPL. # + # WTFPL. # # .zshrc of David Aizenberg # # david.aizenberg@paranoici.org# ################################ @@ -64,6 +64,12 @@ function fzf-ssh () { zle reset-prompt } +# src: https://stackoverflow.com/a/59412853 +function seecert () { + nslookup $1 + (openssl s_client -showcerts -servername $1 -connect $1:443 <<< "Q" | openssl x509 -text | grep -iA2 "Validity") +} + zle -N fzf-ssh bindkey '^o' fzf-ssh