start: exec a shell rather than tmux
This commit is contained in:
parent
1c1fa63793
commit
6ef0a61a7a
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue