tmux aliases

This commit is contained in:
thek4n 2024-06-05 14:06:20 +03:00
parent b34161c811
commit 9d94bfa4f9
2 changed files with 4 additions and 4 deletions

View File

@ -22,7 +22,7 @@ set -g command-alias[106] detach-other='if -F "#{session_many_attached}" {
}' }'
set -g command-alias[107] toggle-synchronize-panes=' set -g command-alias[107] toggle-synchronize-panes='
if -F "#{pane_synchronized}" "setw synchronize-panes off" "setw synchronize-panes on" if -F "#{pane_synchronized}" "setw synchronize-panes off" "setw synchronize-panes on"
' '
# Choose session with key index starting from 1 # Choose session with key index starting from 1
@ -30,9 +30,9 @@ set -g command-alias[108] choose-tree-index="
choose-tree -ZsK '#{?#{e|<:#{line},9},#{e|+:1,#{line}},#{?#{e|<:#{line},35},M-#{a:#{e|+:97,#{e|-:#{line},9}}},}}' choose-tree -ZsK '#{?#{e|<:#{line},9},#{e|+:1,#{line}},#{?#{e|<:#{line},35},M-#{a:#{e|+:97,#{e|-:#{line},9}}},}}'
" "
set -g command-alias[109] toggle-zoom-pane='resize-pane -Z' set -g command-alias[109] toggle-zoom='resize-pane -Z'
set -g command-alias[110] default-layout=" set -g command-alias[110] default-layout="
resize-pane -x $_tmux_main_pane_size resize-pane -x $_tmux_main_pane_size
select-layout '6c98,213x55,0,0{72x55,0,0,72,140x55,73,0,73}' select-layout '6c98,213x55,0,0{72x55,0,0,72,140x55,73,0,73}'
" "

View File

@ -53,7 +53,7 @@ bind H command-prompt -p "Remote host:" "new-session -s 'ssh-%1' -A ssh %1 \; se
bind ';' command-prompt bind ';' command-prompt
bind -n M-f toggle-zoom-pane bind -n M-f toggle-zoom
bind l choose-window -w -Z 'link-window -s "%%" -a' bind l choose-window -w -Z 'link-window -s "%%" -a'