From fcafdb52b25b68ab889d4c60855a154048f3decf Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 1 Apr 2008 05:48:23 +0000 Subject: Add fpr() git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@328 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- vimrc | 1 + zshrc | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/vimrc b/vimrc index 4eff437..528f6b5 100644 --- a/vimrc +++ b/vimrc @@ -11,3 +11,4 @@ runtime! debian.vim let g:Imap_UsePlaceHolders = 0 let g:Imap_FreezeImap = 1 ":set fileencodings=ucs-bom,utf-8,default,latin1 +:hi MatchParen ctermbg=black 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" -- cgit v1.2.3