1
0

fish fixssh function

This commit is contained in:
2024-12-20 13:23:09 +03:00
parent f020752a76
commit 8464b12607

View File

@@ -0,0 +1,8 @@
function fixssh -d "Fix tmux ssh agent socket after a reconnect"
if set -q TMUX
eval (tmux show-environment SSH_AUTH_SOCK | sed 's/\=/ /' | sed 's/^/set /')
echo "New SSH_AUTH_SOCK: $SSH_AUTH_SOCK"
else
echo "tmux not detected"
end
end