From 80952a3b6b0361cbd9195871206717da30edea72 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 17 Mar 2023 00:27:57 +0100 Subject: Update aliases and fix (neo)mutt to use pinentry correctly --- .bash_profile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 2b0b8fb..27f83c2 100644 --- a/.bash_profile +++ b/.bash_profile @@ -31,7 +31,6 @@ alias la='ls -a' alias srv="python3 -m http.server" # start simple server alias tagme='ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)' alias skipci='git commit --allow-empty -m "--skip-ci"' -alias rgpg='pkill pinentry-tty; gpg-connect-agent updatestartuptty /bye' alias k='kubectl' complete -F __start_kubectl k alias ktx='kubectx' @@ -39,6 +38,17 @@ complete -F _kube_contexts ktx alias kns='kubens' complete -F _kube_namespaces kns +alias gpgkill='( + pkill pinentry-tty + pkill pinentry-curses + gpg-connect-agent killagent /bye + gpg-connect-agent updatestartuptty /bye + gpg-connect-agent /bye +)' + +# Fixes the pinentry-tty error https://github.com/neomutt/neomutt/issues/1014 +alias mutt='PINENTRY_USER_DATA=curses neomutt $@' + # alias g='git' # # look up the original completion command and replace the last with the alias # complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g -- cgit v1.2.3