diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-04-03 01:21:05 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-04-03 01:21:05 +0200 |
| commit | e2d40a097f5875c6176bd0313ee4d7a70691241a (patch) | |
| tree | 1f4f4268bcd821a3f070fb518ada25e387b303fc | |
| parent | 616ac3817ee265d9a283560e4fa9c988cac7ec01 (diff) | |
Add alias to restart gpg/ssh after sleep
Found on https://stackoverflow.com/a/44250739/1769515
a reference to the issue: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=835394
That describes why ssh fails after the system wakes up from sleep
This is a workaround to update the SSH variable with TTY
And make sure that pinentry is also working properly.
The speculation is that the sign_and_send_pubkey: signing failed: agent
refused operation is because pinentry/config issues
| -rw-r--r-- | .bash_profile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.bash_profile b/.bash_profile index 1b903e3..6c5a5d9 100644 --- a/.bash_profile +++ b/.bash_profile @@ -27,6 +27,7 @@ alias srv="npx http-server" # start simple server alias grep='grep --color=auto' # enable coloring all the time alias tagme='ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)' alias skipci='git commit --allow-empty -m "--skip-ci"' +alias rgpg='gpg-connect-agent updatestartuptty /bye' # 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 |
