Skip to content

Instantly share code, notes, and snippets.

@whohe
Forked from devvesa/screen.rc
Last active April 8, 2024 15:36
Show Gist options
  • Save whohe/89bc4e84f5a7642276254da0bae52e74 to your computer and use it in GitHub Desktop.
Save whohe/89bc4e84f5a7642276254da0bae52e74 to your computer and use it in GitHub Desktop.
GNU Screen configuration file
# disable startup message
startup_message off
# autodetach screen sessions
autodetach on
altscreen on
# set status line always in last line
hardstatus alwayslastline
hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{=kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B}%Y-%m-%d %{W}%c %{g}]'
# Default screens
screen -t 0 fish
#screen -t code 0 vim
#screen -t executions 1
#screen -t irc 2 weechat-curses
# Big scrollback
defscrollback 50000
bind c screen fish
bindkey -k k2 screen fish
attrcolor b ".I"
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
bindkey "^[[1;3D" prev # Alt + Flecha izquierda para ir a la ventana anterior
bindkey "^[[1;3C" next # Alt + Flecha derecha para ir a la siguiente ventana
# Crear un split vertical con Shift + F2
bindkey "^[[1;2Q" split -v
# Crear un split horizontal con Control + F2
bindkey "^[[1;5Q" split -h
defbce "on"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment