This commit is contained in:
David Aizenberg
2023-01-23 16:48:35 +00:00
parent 24ff3df987
commit 0c5b0b4802

8
.zshrc
View File

@@ -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