Created
July 8, 2019 22:14
-
-
Save hrkt/defa67eef890a5469db3297d510e7a8d to your computer and use it in GitHub Desktop.
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
# screenrc | |
# | |
# see also | |
# | |
# arch linux wiki | |
# https://wiki.archlinux.org/index.php/GNU_Screen | |
# GNU Screen manual | |
# https://www.gnu.org/software/screen/manual/screen.html#Overview | |
# scroll buffer (press Ctrl-J esc to enter copy-mode, press ESC to leave copy-mode) | |
defscrollback 20000 | |
# change ctrl-a bindings to ctrl-j | |
escape ^Jj | |
# enable scrolling | |
termcapinfo xterm* ti@:te@ | |
# avoid editors not to quit abnormally | |
altscreen on | |
# status line (show buffers) | |
hardstatus alwayslastline "%{= cd} %-w%{= wk} %n %t* %{-}%+w" | |
# do not show startup message | |
startup_message off | |
# do not change width & height on startup | |
termcapinfo xterm Z0=\E[?3h:Z1=\E[?3l:is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l | |
# press F11 to previous tab | |
bindkey -k F1 prev | |
# press F12 to previous tab | |
bindkey -k F2 next | |
# show some buffers on startup | |
screen -M -t Shell 0 | |
screen -t Shell 1 | |
#screen -t Shell 2 | |
#screen -t Shell 3 | |
select 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment