diff --git a/utils/bin/start b/utils/bin/start index 88fc17e..f074c15 100644 --- a/utils/bin/start +++ b/utils/bin/start @@ -28,7 +28,7 @@ while getopts ":wh" arg; do done if [ "$WSL_SSH_AGENT" = true ]; then - exec ssh-agent tmux new-session -A -t main "$@" + SHLVL=0 exec ssh-agent "$SHELL" fi require() { @@ -46,5 +46,5 @@ require npiperelay export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock [ -S "$SSH_AUTH_SOCK" ] && rm "$SSH_AUTH_SOCK" socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"npiperelay -ei -s //./pipe/openssh-ssh-agent",nofork & -exec tmux new-session -A -t main "$@" +SHLVL=0 exec "$SHELL"