diff options
author | Matthew Lemon <y@yulqen.org> | 2024-09-03 19:47:07 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-09-03 19:47:52 +0100 |
commit | f63309742e2a27b65fb420c0d6c6338ecf0ba87b (patch) | |
tree | b85599399789b804d48bfce5763f34d263d5417a /bashrc | |
parent | 3fec92bb490d37faabef9bfc2a46d61492921c62 (diff) |
Removes troublesome ssh-agent code and replaces with simpler
Diffstat (limited to '')
-rw-r--r-- | bashrc | 17 |
1 files changed, 11 insertions, 6 deletions
@@ -138,12 +138,17 @@ _find_tagged () } # ssh - from https://wiki.archlinux.org/title/SSH_keys#SSH_agents -if ! pgrep -u "$USER" ssh-agent > /dev/null; then - ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env" -fi -if [[ ! -f "$SSH_AUTH_SOCK" ]]; then - source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null -fi +# if ! pgrep -u "$USER" ssh-agent > /dev/null; then +# ssh-agent -t 1h > "$XDG_RUNTIME_DIR/ssh-agent.env" +# fi +# if [[ ! -f "$SSH_AUTH_SOCK" ]]; then +# source "$XDG_RUNTIME_DIR/ssh-agent.env" >/dev/null +# fi + +eval "$(ssh-agent -s)" +ssh-add ~/.ssh/id_ed25519 # Add your key manually +# add other ssh-add lines for other keys if necessary! + # bind '"\C-r": "\C-x1\e^\er"' # bind -x '"\C-x1": __fzf_history'; |