This commit is contained in:
thek4n 2026-02-18 11:11:27 +03:00
parent b01110dc91
commit b68cc25014

View File

@ -28,7 +28,7 @@ SESSION="ssh_$(echo "${choosed_ssh_server%% *}" | sed 's/\./\-/g ; s/\:/\-/g')"
if ! tmux has-session -t="${SESSION}" 2>/dev/null; then
tmux new-session -s "${SESSION}" -d -n "1" "TERM=xterm-256color ssh ${choosed_ssh_server} || read"
tmux new-session -s "${SESSION}" -c "${HOME}" -d -n "1" "TERM=xterm-256color ssh ${choosed_ssh_server} || read"
fi
tmux switch-client -t "${SESSION}"