remote tmux features
This commit is contained in:
parent
e83c2398ef
commit
b358f7e5bb
@ -227,4 +227,10 @@ most-often-commands() {
|
|||||||
# Enable X11Forwarding and disable mux session
|
# Enable X11Forwarding and disable mux session
|
||||||
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 "$@"
|
||||||
}
|
}
|
||||||
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user