Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- swap-window -s 3 -t 1
- swap-window -t 0
- move-window -t 0
- bind-key T swap-window -t 0
- bind-key -n C-S-Left swap-window -t -1
- bind-key -n C-S-Right swap-window -t +1
- bind < command-prompt -p index "run-shell '~/.tmux.number.sh %%'"
- #!/bin/bash
- if [ $# -ne 1 -o -z "$1" ]; then
- exit 1
- fi
- if tmux list-windows | grep -q "^$1:"; then
- tmux swap-window -t $1
- else
- tmux move-window -t $1
- fi
- # window movement / renumbering like in screen's :number
- bind-key m command-prompt -p "move window to:" "swap-window -t '%%'"
- 0:one 1:two 2:three 3:zero*
- 0:zero* 1:two 2:three 3:one
- 0:zero* 1:one 2:two 3:three
- bind-key -n M-Left run-shell 'tmux list-windows | head -n 1 | grep -q active || tmux swap-window -t -1'
- bind-key -n M-Right run-shell 'tmux list-windows | tail -n 1 | grep -q active || tmux swap-window -t +1'
- set -g base-index 1
- set -g renumber-windows on
- bind-key -n M-Left run-shell 'if tmux list-windows | head -n 1 | grep -q active ; then tmux move-window -t 999 ; move-window -r ; refresh-client -S ; else tmux swap-window -t -1 ; fi'
- bind-key -n M-Right run-shell 'if tmux list-windows | tail -n 1 | grep -q active ; then tmux move-window -t 0 ; move-window -r ; refresh-client -S ; else tmux swap-window -t +1 ; fi'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement