summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeah (ctucx) <leah@ctu.cx>2021-03-08 00:36:10 +0100
committerLeah (ctucx) <leah@ctu.cx>2021-03-08 00:36:10 +0100
commit12a0c6b5bac7824bae109003e08d383d8abf6e83 (patch)
treeda64f04d964b4dbb445325cb5642bd928183a7ed
parent781c142ef5e58e7bfdd5907c3a3eadde66ef9cb4 (diff)
downloaddotfiles-12a0c6b5bac7824bae109003e08d383d8abf6e83.tar.gz
dotfiles-12a0c6b5bac7824bae109003e08d383d8abf6e83.tar.bz2
dotfiles-12a0c6b5bac7824bae109003e08d383d8abf6e83.zip
.bashrc: add function for reset known gpg-cards
-rw-r--r--dot_bashrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/dot_bashrc b/dot_bashrc
index a38e374..0c0486e 100644
--- a/dot_bashrc
+++ b/dot_bashrc
@@ -41,6 +41,12 @@ func_myip(){
fi
}
+func_reset-gpgcards(){
+ rm -r ~/.gnupg/private-keys-v1.d
+ gpgconf --kill gpg-agent
+ gpg --card-status
+}
+
#aliases
alias ..='cd ..'
@@ -55,6 +61,7 @@ alias find='fd'
alias nano='micro'
alias reinitgit="rm -rf .git && git init && git add -A && git commit -m 'init'"
alias myip="func_myip"
+alias reset-gpgcards="func_reset-gpgcards"
alias passgit="export CURRDIR=$(pwd);cd ~/.password-store;lazygit;cd $CURRDIR;"
alias chezmoigit="export CURRDIR=$(pwd);cd ~/.local/share/chezmoi;lazygit;cd $CURRDIR;"