From 7247c94f15ce079ea01b10a66393758861f5a322 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 6 Apr 2021 01:13:19 +0200 Subject: Add ssh config to use gpg and fix tty issue --- .bash_profile | 2 +- .ssh/config | 1 + README.md | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 .ssh/config diff --git a/.bash_profile b/.bash_profile index 6c5a5d9..45dced1 100644 --- a/.bash_profile +++ b/.bash_profile @@ -27,7 +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 rgpg='pkill pinentry-tty; 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 diff --git a/.ssh/config b/.ssh/config new file mode 100644 index 0000000..4be131d --- /dev/null +++ b/.ssh/config @@ -0,0 +1 @@ +Match host * exec "gpg-connect-agent UPDATESTARTUPTTY /bye" diff --git a/README.md b/README.md index 4529e3a..aa1bc2d 100644 --- a/README.md +++ b/README.md @@ -18,8 +18,8 @@ brew bundle ln -sf ~/.rc/.bash_profile ~/.bash_profile ln -sf ~/.rc/.editorconfig ~/.editorconfig ln -sf ~/.rc/.inputrc ~/.inputrc -ln -sf ~/.rc/.screenrc ~/.screenrc ln -sf ~/.rc/.netrc ~/.netrc +ln -sf ~/.rc/.screenrc ~/.screenrc ln -sf ~/.rc/.terraformrc ~/.terraformrc ln -sf ~/.rc/.tmux.conf ~/.tmux.conf chmod 600 ~/.netrc @@ -28,6 +28,9 @@ chmod 600 ~/.terraformrc ln -sf ~/.rc/.gitconfig ~/.gitconfig ln -sf ~/.rc/.gitignore_global ~/.gitignore_global +mkdir -p ~/.ssh +ln -sf ~/.rc/.ssh/config ~/.ssh/config + mkdir -p ~/.aws ln -sf ~/.rc/.aws/config ~/.aws/config ln -sf ~/.rc/.aws/credentials ~/.aws/credentials -- cgit v1.2.3