remote tmux features

This commit is contained in:
thek4n 2024-03-28 15:24:26 +03:00
parent e83c2398ef
commit b358f7e5bb
2 changed files with 9 additions and 0 deletions

View File

@ -228,3 +228,9 @@ most-often-commands() {
sshx() { sshx() {
ssh -X -o ControlMaster=no -o ControlPath=none $@ ssh -X -o ControlMaster=no -o ControlPath=none $@
} }
# Open remote tmux
ssht() {
REMOTE="$1"; shift
ssh -t "$REMOTE" tmux -u "$@"
}

View File

@ -2,6 +2,9 @@
set -g prefix C-b set -g prefix C-b
# Ctrl+a to send prefix to remote tmux
bind-key -n C-a send-prefix
# Zoom pane # Zoom pane
bind -n M-f resize-pane -Z bind -n M-f resize-pane -Z