From 37f4dc20d7dfdecfe618477806bee241bf9ecc55 Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 5 Sep 2020 13:46:47 -0700 Subject: make 'd' quit ssh-and-tmux so can C-\ d d --- bin/ssh-and-tmux | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/ssh-and-tmux b/bin/ssh-and-tmux index 0f39558a..d11c3d73 100755 --- a/bin/ssh-and-tmux +++ b/bin/ssh-and-tmux @@ -12,11 +12,11 @@ host="$1" session="${2:-default}" -prompt="Press any key to reconnect to tmux session $session on $host; C-c/C-d to give up .." +prompt="Press any key to reconnect to tmux session $session on $host; d/C-d/C-c to give up .." while true; do ssh -t "$host" "tmux new-session -A -s $session" clear read -n 1 -r -s -p "$prompt" ch - [ "$ch" = $'\04' ] && exit + [ "$ch" = $'\04' -o "$ch" = d ] && exit done -- cgit v1.2.3