From 7b70d0cdf4b512ca74432d6b379e239cb40ea6d0 Mon Sep 17 00:00:00 2001 From: juancwu <46619361+juancwu@users.noreply.github.com> Date: Sun, 1 Jan 2023 11:56:05 -0500 Subject: [PATCH 1/3] remote: invalid tmux key bind --- .config/tmux/tmux.conf | 3 --- 1 file changed, 3 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 3adfe9c..5666024 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -43,9 +43,6 @@ bind -r - resize-pane -D 5 bind -r < resize-pane -L 5 bind -r > resize-pane -R 5 -# toggle back and forth between panes -bind -r . select-pane -t ! - ## basic settings set-option -g status-justify "left" From ecc0a7b5bd9c69e0eb77c8ff83da831283ee9514 Mon Sep 17 00:00:00 2001 From: juancwu <46619361+juancwu@users.noreply.github.com> Date: Sun, 1 Jan 2023 21:53:44 -0500 Subject: [PATCH 2/3] update: new alias for tmux operations --- .config/fish/config.fish | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index bb2e2ef..1810b52 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -43,6 +43,12 @@ if type -q git alias ga "git add" end +if type -q tmux + alias tma "tmux attach" + alias tmls "tmux list-session" + alias tmks "tmux kill-session" +end + # allow local config overwrite set LOCAL_CONFIG (dirname (status --current-file))/config-local.fish if test -f $LOCAL_CONFIG From 7261864fcc53a2f28936ab13ef11899a16626f40 Mon Sep 17 00:00:00 2001 From: juancwu <46619361+juancwu@users.noreply.github.com> Date: Sun, 1 Jan 2023 22:25:16 -0500 Subject: [PATCH 3/3] update(tmux): add key bind to toggle last(active) and current window. --- .config/tmux/tmux.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 5666024..27e424a 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -43,6 +43,8 @@ bind -r - resize-pane -D 5 bind -r < resize-pane -L 5 bind -r > resize-pane -R 5 +bind -r t last-window + ## basic settings set-option -g status-justify "left"