diff options
| author | Ahmed Abdelhalim <[email protected]> | 2021-04-06 01:13:19 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2021-04-06 02:14:19 +0200 |
| commit | 7247c94f15ce079ea01b10a66393758861f5a322 (patch) | |
| tree | 4d38f599eeba468a37a76d0a43b089409889d86a | |
| parent | e2d40a097f5875c6176bd0313ee4d7a70691241a (diff) | |
Add ssh config to use gpg and fix tty issue
| -rw-r--r-- | .bash_profile | 2 | ||||
| -rw-r--r-- | .ssh/config | 1 | ||||
| -rw-r--r-- | README.md | 5 |
3 files changed, 6 insertions, 2 deletions
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" @@ -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 |
