We Recommend

bash Cookbook: Solutions and Examples for bash Users bash Cookbook: Solutions and Examples for bash Users
bash Cookbook teaches shell scripting the way Unix masters practice the craft. It presents a variety of recipes and tricks for all levels of shell programmers so that anyone can become a proficient user of the most common Unix shell -- the bash shell -- and cygwin or other popular Unix emulation packages.


Posted By

mbadran on 06/16/08


Tagged

Shell screen configuration


Versions (?)


Who likes this?

2 people have marked this snippet as a favorite

alexxx
Juanje


My .screenrc


Published in: Bash 


  1. # turn off the annoying startup message
  2. startup_message off
  3.  
  4. # change meta key to ctrl+w (ctrl+a goes to start of line by default)
  5. escape "^Ww"
  6.  
  7. # scrollback for default windows
  8. defscrollback 50000
  9.  
  10. # warn of activity
  11. activity "Activity in %t(%n)"
  12.  
  13. termcapinfo xterm-color 'hs:ts=\E]2;:fs=\007:ds=\E]0;screen\007'
  14.  
  15. # set status line in window title
  16. hardstatus string "%h"
  17. caption always "%-Lw%{= kW}%50> %n%f* %t %{-}%+Lw%<"
  18.  
  19. # set left and right meta key mods
  20. #ALT-,. and ALT-<>
  21. bindkey "^[<" eval number !echo $WINDOW-1|bc
  22. bindkey "^[>" eval number !echo $WINDOW+1|bc
  23. bindkey "^[," prev
  24. bindkey "^[." next

Report this snippet 

You need to login to post a comment.