fix tmux ssh session

This commit is contained in:
thek4n 2024-11-18 22:59:54 +03:00
parent 3e4e42e509
commit 94ef205cf7
3 changed files with 4 additions and 1 deletions

View File

@ -6,6 +6,7 @@ readonly tmux_list_sessions_script="${HOME}/.local/bin/tmux_list_sessions.sh"
export FZF_DEFAULT_OPTS="\ export FZF_DEFAULT_OPTS="\
${FZF_DEFAULT_OPTS} ${FZF_DEFAULT_OPTS}
--no-multi --no-multi
--marker=''
--border=rounded --border=rounded
--border-label-pos=bottom --border-label-pos=bottom
--border-label=' Attach session ' --border-label=' Attach session '

View File

@ -6,6 +6,8 @@ readonly EDITOR="nvim"
export FZF_DEFAULT_OPTS="\ export FZF_DEFAULT_OPTS="\
${FZF_DEFAULT_OPTS} ${FZF_DEFAULT_OPTS}
--no-multi
--marker=''
--border=rounded --border=rounded
--border-label-pos=bottom --border-label-pos=bottom
--border-label=' Start session ' --border-label=' Start session '

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 if ! tmux has-session -t "${SESSION}" 2>/dev/null; then
tmux new-session -s "${SESSION}" -d -n "1" "TERM=xterm-color ssh ${choosed_ssh_server} || read" tmux new-session -s "${SESSION}" -d -n "1" "TERM=xterm-256color ssh ${choosed_ssh_server} || read"
fi fi
tmux set-option -t "${SESSION}" status off tmux set-option -t "${SESSION}" status off