mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-29 06:29:36 +01:00
bashrc & zshrc: add alias gpg-key-count to calcutate amounts of keys in keyring.
This is different from previous with following ways: 1. Simpler. 2. Works with Windows (?) 3. Takes more time.
This commit is contained in:
parent
19b8da78ac
commit
4059cb51a5
1
bashrc
1
bashrc
@ -319,6 +319,7 @@ alias http.debian.net="lynx http.debian.net/debian/project/trace/"
|
|||||||
|
|
||||||
# Amount of keys in GPG keyring.
|
# Amount of keys in GPG keyring.
|
||||||
alias gpg-key-amount="gpg --list-keys|grep '^pub'|wc -l"
|
alias gpg-key-amount="gpg --list-keys|grep '^pub'|wc -l"
|
||||||
|
alias gpg-key-count="gpg --export -a|gpg --import"
|
||||||
|
|
||||||
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
# Allow custom aliases to be put in .aliases or .bash_aliases .
|
||||||
|
|
||||||
|
1
zshrc
1
zshrc
@ -268,6 +268,7 @@ alias http.debian.net="lynx http.debian.net/debian/project/trace/"
|
|||||||
|
|
||||||
# Amount of keys in GPG keyring.
|
# Amount of keys in GPG keyring.
|
||||||
alias gpg-key-amount="gpg --list-keys|grep '^pub'|wc -l"
|
alias gpg-key-amount="gpg --list-keys|grep '^pub'|wc -l"
|
||||||
|
alias gpg-key-count="gpg --export -a|gpg --import"
|
||||||
|
|
||||||
# .aliases
|
# .aliases
|
||||||
if [ -f ~/.aliases ]; then
|
if [ -f ~/.aliases ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user