summaryrefslogtreecommitdiff
path: root/zshrc
diff options
context:
space:
mode:
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 25cb147..7902c82 100644
--- a/zshrc
+++ b/zshrc
@@ -415,6 +415,13 @@ upgrade-systems() {
done
}
+fpr() {
+ (
+ ssh-keygen -r '' -f =( ssh-keyscan -t rsa $1 2>/dev/null | sed -e 's/^[^ ]* //');
+ ssh-keygen -r '' -f =( ssh-keyscan -t dsa $1 2>/dev/null | sed -e 's/^[^ ]* //');
+ ) | sed -e 's/^[^ ]* //'
+}
+
##########
md() {
DIR="$1"