From 19b8da78acca00b07a445965881444e2b0b5b98e Mon Sep 17 00:00:00 2001 From: Mika Suomalainen Date: Wed, 25 Jul 2012 10:51:05 +0300 Subject: [PATCH] bashrc & zshrc: add alias gpg-key-amount to show how many keys there are in pubring. --- bashrc | 3 +++ zshrc | 3 +++ 2 files changed, 6 insertions(+) diff --git a/bashrc b/bashrc index 150b498f..c6861a68 100644 --- a/bashrc +++ b/bashrc @@ -317,6 +317,9 @@ alias apt-key-refresh-keys="apt-key adv --keyserver pool.sks-keyservers.net --re # To see which mirror http.debian.net puts you to. The file which has the latest update time is the mirror which you are using. alias http.debian.net="lynx http.debian.net/debian/project/trace/" +# Amount of keys in GPG keyring. +alias gpg-key-amount="gpg --list-keys|grep '^pub'|wc -l" + # Allow custom aliases to be put in .aliases or .bash_aliases . # .aliases diff --git a/zshrc b/zshrc index bc46a93b..436916ab 100644 --- a/zshrc +++ b/zshrc @@ -266,6 +266,9 @@ alias apt-key-refresh-keys="apt-key adv --keyserver pool.sks-keyservers.net --re # To see which mirror http.debian.net puts you to. The file which has the latest update time is the mirror which you are using. alias http.debian.net="lynx http.debian.net/debian/project/trace/" +# Amount of keys in GPG keyring. +alias gpg-key-amount="gpg --list-keys|grep '^pub'|wc -l" + # .aliases if [ -f ~/.aliases ]; then source ~/.aliases