Gpg : Add pincheck command to unlock the card.
This commit is contained in:
parent
5059f25ad6
commit
628cd36ce6
|
@ -1,5 +1,10 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
text = ''
|
text = ''
|
||||||
|
# Check smartcard pin.
|
||||||
|
function pincheck() {
|
||||||
|
echo verify | gpg --card-edit --no-tty --command-fd=0
|
||||||
|
}
|
||||||
|
|
||||||
# Encrypt files to myself.
|
# Encrypt files to myself.
|
||||||
# Usage: encrypt <FILES>
|
# Usage: encrypt <FILES>
|
||||||
function encrypt() {
|
function encrypt() {
|
||||||
|
|
Loading…
Reference in a new issue