Skip to content

Instantly share code, notes, and snippets.

@engividal
Created September 29, 2021 14:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save engividal/76c0f376ca5f7bb96828994815cc8707 to your computer and use it in GitHub Desktop.
Save engividal/76c0f376ca5f7bb96828994815cc8707 to your computer and use it in GitHub Desktop.
config screen terminal
# 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