start: exec a shell rather than tmux

This commit is contained in:
Fernando Schauenburg 2022-09-01 08:39:44 +02:00
parent 1c1fa63793
commit 6ef0a61a7a

View file

@ -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"