fix tmux ssh session
This commit is contained in:
parent
3e4e42e509
commit
94ef205cf7
@ -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 '
|
||||||
|
|||||||
@ -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 '
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user