Created
September 24, 2022 23:51
-
-
Save xcollantes/1c5a9d8e977197dada4b79c49e9971e6 to your computer and use it in GitHub Desktop.
Screen Linux config
This file contains hidden or 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
| # the following two lines give a two-line status, with the current window highlighted | |
| hardstatus alwayslastline | |
| hardstatus string '%{= kG}%{b m}[%S]%? %1`%?%{g} %= %{= kw}%-w%{+b Yw} %n %t%?(%u)%? %{-}%+w %=%{g} %{B}%m/%d/%Y%{g}' | |
| # no welcome message | |
| startup_message off | |
| # 256 colors | |
| attrcolor b ".I" | |
| termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' | |
| defbce on | |
| # dettach session when hangup signal is detected | |
| autodetach on | |
| # mouse scroll | |
| termcapinfo xterm* ti@:te@ | |
| # Clear screen when leaving editor | |
| altscreen on | |
| # mouse tracking allows to switch region focus by clicking | |
| # mousetrack on | |
| # get rid of silly xoff stuff | |
| bind s split | |
| # default windows | |
| screen -t bash 1 bash | |
| select 1 | |
| bind c screen 1 | |
| bind 0 select 10 | |
| # navigating regions with Ctrl-arrows | |
| bindkey "^[[1;5D" focus left | |
| bindkey "^[[1;5C" focus right | |
| bindkey "^[[1;5A" focus up | |
| bindkey "^[[1;5B" focus down | |
| # F2 puts Screen into resize mode. Resize regions using hjkl keys. | |
| #bindkey "^[OQ" eval "command -c rsz" # enter resize mode | |
| #bindkey "^[A" eval "command -c rsz" | |
| # use hjkl keys to resize regions | |
| bind G eval "resize -h +5" | |
| bind g eval "resize -h -5" | |
| bind j eval "resize -v -5" | |
| bind J eval "resize -v +5" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment