Created
September 29, 2021 14:35
-
-
Save engividal/76c0f376ca5f7bb96828994815cc8707 to your computer and use it in GitHub Desktop.
config screen terminal
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
# File: ~/.screenrc | |
# | |
# Deactivate the startup message of screen | |
startup_message off | |
# Create 2x2 screens | |
split | |
split -v | |
focus down | |
split -v | |
focus up | |
# Vim like key bindings for moving around windows | |
bind j focus right # C-a j goes right | |
bind l focus left # C-a l goes left | |
bind i focus up # C-a i goes up | |
bind k focus down # C-a k goes down | |
# Setup hardstatus | |
hardstatus off | |
hardstatus alwayslastline | |
hardstatus string '%{= .g} %H |%=%{K}%{= w}%?%{K}%-Lw%?%{r}(%{W}%{w}%n%{w}*%f%t%?(%u)%?%{r})%{w}%?%{K}%+Lw%?%= %{g}|%{B} %m-%d %{W}%c %{g} ' | |
# Fix for residual editor text | |
altscreen on | |
# Fix for Name column in windowlist only show "bash" | |
windowlist string "%4n %h%=%f" | |
# Indicate 256 color screen | |
term screen-256color | |
# Bind Ctrl+A f or F for activating/deactivating hardstatus line | |
bind f eval "hardstatus ignore" | |
bind F eval "hardstatus alwayslastline" | |
# EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment