Skip to content

Instantly share code, notes, and snippets.

@pav67
Created September 19, 2013 08:20
Show Gist options
  • Save pav67/6620534 to your computer and use it in GitHub Desktop.
Save pav67/6620534 to your computer and use it in GitHub Desktop.
screenrc
# Pour avoir un screen qui ne demande pas de confirmation lorsque l'on veut fermer une fenetre avec kill, il faut le compiler nous-même !
# 1) Télécharger le code source sur git
# 2) installer autoconf et libncurses5-dev
# 3) Commenter les lignes 1329 à 1337 de process.c (correspond au test "Really want to kill ... [y/n]")
# 4) faire aclocal && autoheader && automake && autoconf && ./configure && make
# 5) installer notre nouvelle version de screen avec mv ./screen /usr/bin
startup_message off
autodetach on
defscrollback 1024
nonblock on
nethack on
msgwait 1
#remove some stupid bindings
bind ^k
bind ^\
#add some TSO-style ones
bindkey -k k2 screen
bindkey -k k3 kill
bindkey -k k7 prev
bindkey -k k8 next
bindkey "^[[25~" detach
#status bar
hardstatus on
hardstatus alwayslastline
hardstatus string "%{.kW}%-w%{.Wk}%n %t%{-}%{=b kw}%?%+w%? %=%c %d/%m/%Y"
#clean the screen after editor exists
altscreen on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment