You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
766 B
46 lines
766 B
5 years ago
|
# screen's prefix is Ctrl-A
|
||
|
set-option -g prefix C-a
|
||
|
|
||
|
# send prefix with a
|
||
3 years ago
|
set -gu prefix2
|
||
5 years ago
|
unbind C-b
|
||
|
bind a send-prefix
|
||
|
|
||
3 years ago
|
unbind p
|
||
|
bind p previous-window
|
||
|
unbind n
|
||
|
bind n next-window
|
||
|
|
||
5 years ago
|
# move to last window with Ctrl-A
|
||
|
unbind l
|
||
|
bind C-a last-window
|
||
|
|
||
|
# rename window with A
|
||
|
unbind ,
|
||
3 years ago
|
unbind A
|
||
5 years ago
|
bind A command-prompt "rename-window '%%'"
|
||
|
|
||
|
# also create windows with Ctrl-C
|
||
|
bind C-c new-window
|
||
|
|
||
|
# also detach with Ctrl-D
|
||
|
bind C-d detach-client
|
||
|
|
||
|
# also go next window with Ctrl-N, space
|
||
|
unbind " "
|
||
|
bind " " next-window
|
||
|
bind C-n next-window
|
||
|
|
||
|
# also go previous with h, backspace
|
||
|
bind h previous-window
|
||
|
bind BSpace previous-window
|
||
|
|
||
|
# show window list with C-W, w
|
||
|
bind C-w list-windows
|
||
|
# unbind w
|
||
|
# bind w list-windows
|
||
|
|
||
|
# choose window with "
|
||
|
unbind '"'
|
||
|
bind '"' choose-window
|