# Use a reattach password. # auth on # Use a custom shell rather than the one in $SHELL. # The '-' prefix makes the shell a login/interactive shell. shell -/bin/bash # Change how screen operates. deflogin on defscrollback 100000 defutf8 on # Change the output from screen. startup_message off vbell off bell_msg "^GBell in window %n - %t" vbell_msg "Bell in window %n - %t" rendition bell =b y rendition monitor =b g rendition silence =b c # Linux console doesn't support underlining, so use a colour attribute instead. #attrcolor u "-u c" # Use a custom hardstatus line. # Inserts a random char before the | : #hardstatus alwayslastline "%{=b2}%H%{-}%+012= %{=b7}|%{-} %{=b4}%-w%{-}%40L>%{=b1}%n %t%{-}%{=b4}%+w%{-}%-08= %{=b7}|%{-} %{=b3}%c${-}" hardstatus alwayslastline " %{=b2}%H%{-} %{=b7}|%{-} %{=b4}%-w%{-}%40L>%{=b1}%n %t%{-}%{=b4}%+w%{-}%-09= %{=b7}|%{-} %{=b3}%c${-}" # Rebind keys. bind ^k bind k bind K kill bind ^\ bind \\ quit bind s bind q select 11 bind w select 12 bind e select 13 bind r select 14 bind t select 15 bind y select 16 bind u select 17 bind i select 18 bind o select 19 # bind p select 20 bind b next # Start window numbering from 1, not 0. screen 1 bind c screen 1 bind ^c screen 1 bind 0 select 10 # Allow remote 'screen' command in all windows. # aclchg :window: +x "#screen" # To open a new screen remotely: # echo -ne "\e]83;screen 1 ^G" # Where ^G is a literal Ctl+G