[F] Fix auto tmux compatibility with ssh agent

This commit is contained in:
2026-05-02 09:12:34 +00:00
parent d83a0c3075
commit d21c95403f
4 changed files with 21 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Keep a stable SSH agent socket path for tmux panes across reconnects.
if [ -S "$SSH_AUTH_SOCK" ]; then
ln -sf "$SSH_AUTH_SOCK" "$HOME/.ssh/current_agent.sock"
fi