Created
September 23, 2020 10:48
-
-
Save mclarkson/ce9efc1476a40a823fb0d4cb3d7b0ef6 to your computer and use it in GitHub Desktop.
GNU Screen screenrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shell /usr/bin/zsh | |
defscrollback 10000 | |
term xterm-256color | |
startup_message off | |
hardstatus on | |
hardstatus alwayslastline "%-Lw%{= BW}%50>%n%f* %t%{-}%+Lw%<" | |
vbell on | |
windows | |
bind j focus down | |
bind k focus up | |
bind l focus right | |
bind h focus left | |
# default windows | |
screen -t vim 0 zsh | |
screen -t zsh 1 zsh | |
screen -t zsh 2 zsh | |
screen -t zsh 3 zsh | |
select 0 | |
#bind c screen 1 # window numbering starts at 1 not 0 | |
#bind 0 select 10 | |
# get rid of silly xoff stuff | |
bind s split | |
# layouts | |
layout autosave on | |
layout new one | |
select 0 | |
layout new two | |
select 0 | |
split -v | |
focus | |
select 1 | |
resize 40% | |
focus | |
layout new three | |
select 0 | |
split | |
resize -v +7 | |
focus down | |
select 1 | |
split -v | |
resize -h +10 | |
focus right | |
select 2 | |
focus up | |
layout attach one | |
layout select one | |
# switch windows with F3 (prev) and F4 (next) | |
bindkey "^[OR" layout prev | |
bindkey "^[OS" layout next | |
# switch layouts with Ctrl+F3 (prev layout) and Ctrl+F4 (next) | |
#bindkey "^[O1;5R" layout prev | |
#bindkey "^[O1;5S" layout next | |
# F2 puts Screen into resize mode. Resize regions using hjkl keys. | |
bindkey "^[OQ" eval "command -c rsz" # enter resize mode | |
# use hjkl keys to resize regions | |
bind -c rsz h eval "resize -h -5" "command -c rsz" | |
bind -c rsz j eval "resize -v -5" "command -c rsz" | |
bind -c rsz k eval "resize -v +5" "command -c rsz" | |
bind -c rsz l eval "resize -h +5" "command -c rsz" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment