Archivio

Posts Tagged ‘conf’

screenrc

febbraio 14, 2009 Commenti disabilitati

Sto usando spesso screen in ambito server e diventa sempre più utile utilizzare un unico screenrc fatto per bene.

Screen è un multiterminale creato proprio per chi ha la necessità di avere più di una console aperta e switchare spesso da una all’altra. Permette di spostarsi senza utilizzare il mouse e grazie a tantissime scorciatoie da tastiera si possono eseguire comandi complicati in un attimo. La sua natura ricora molto vim, ma la sua potenza è nulla senza il controllo!

Quindi posto qui di seguito un ottimo screenrc:

# s@mba ~/.screenrc
# file di configurazione di screen
autodetach            on             
crlf                  off            
deflogin              off            
hardcopy_append       on             
startup_message       off     
termcapinfo linux "ve=\E[?25h\E[?17;0;64c" # red
vbell                 off             
defscrollback         3000            
silencewait           15              
shell                 bash
# in order to print
caption always "%{= kw}%?%-Lw%?%{+b kw}%n*%t%f %?(%u)%?%{= kw}%?%+Lw%?"
hardstatus alwayslastline "%{+b kr}[ %H ] %{ky} Load: %l %-=%{kb} %c  %d.%m.%Y"

sorendition gK
activity              "activity in %n (%t) [%w:%s]~"
bell                  "bell     in %n (%t) [%w:%s]~"
pow_detach_msg        "BYE"
vbell_msg             " *beep* "
bind A title  # default!
bind ^g  screen -t 'Google' links www.google.com
bind K  kill # default!
bind M monitor # default!
bind P paste .
bind V screen -t 'vim' 0 vim
bind ^Y screen -t log watch -n 5 rail -40 /var/log/syslog
bind .
bind ^\
bind \\
msgwait 1
version
msgwait 2
echo "Benvenuto :-)"

Per la verione originale e sopratutto commentata fare rifermento a questo esempio completo di screenrc

Categorie:varie Tag:, , , , ,