diff options
| author | Ahmed Abdelhalim <[email protected]> | 2023-03-17 00:27:57 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2023-03-17 00:37:45 +0100 |
| commit | 80952a3b6b0361cbd9195871206717da30edea72 (patch) | |
| tree | 4a805e58657956989ec5394049883f25d549a928 /.bash_profile | |
| parent | ad94d6acdc4541903d9bd7688fec7ed1c3385dc3 (diff) | |
Update aliases and fix (neo)mutt to use pinentry correctly
Diffstat (limited to '.bash_profile')
| -rw-r--r-- | .bash_profile | 12 |
1 files changed, 11 insertions, 1 deletions
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 |
