aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-09-03 19:47:07 +0100
committerMatthew Lemon <y@yulqen.org>2024-09-03 19:47:52 +0100
commitf63309742e2a27b65fb420c0d6c6338ecf0ba87b (patch)
treeb85599399789b804d48bfce5763f34d263d5417a /bashrc
parent3fec92bb490d37faabef9bfc2a46d61492921c62 (diff)
Removes troublesome ssh-agent code and replaces with simpler
Diffstat (limited to '')
-rw-r--r--bashrc17
1 files changed, 11 insertions, 6 deletions
diff --git a/bashrc b/bashrc
index ab38f31..db56710 100644
--- a/bashrc
+++ b/bashrc
@@ -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';