tmux: add stty command alias for resizing (serial) terminals

This commit is contained in:
Daniel Lundin 2024-11-19 12:51:08 +01:00
parent 74e5882919
commit 74c622efab
Signed by: dln
SSH key fingerprint: SHA256:dQy1Xj3UiqJYpKR5ggQ2bxgz4jCH8IF+k3AB8o0kmdI

View file

@ -31,6 +31,9 @@
setw -g window-status-format "" setw -g window-status-format ""
setw -g window-status-current-format "" setw -g window-status-current-format ""
setw -g window-status-separator "" setw -g window-status-separator ""
set -s command-alias[1000] stty='run-shell "tmux send-keys \"stty cols #{pane_width} rows #{pane_height}\" Enter"'
bind -n M-1 if-shell 'tmux select-window -t nvim' refresh-client 'new-window -S -n nvim nvim --listen $XDG_RUNTIME_DIR/nvim-persistent.sock' bind -n M-1 if-shell 'tmux select-window -t nvim' refresh-client 'new-window -S -n nvim nvim --listen $XDG_RUNTIME_DIR/nvim-persistent.sock'
bind -n M-2 if-shell 'tmux select-window -t t1' refresh-client 'new-window -S -n t1' bind -n M-2 if-shell 'tmux select-window -t t1' refresh-client 'new-window -S -n t1'
bind -n M-3 if-shell 'tmux select-window -t t2' refresh-client 'new-window -S -n t2' bind -n M-3 if-shell 'tmux select-window -t t2' refresh-client 'new-window -S -n t2'