# the default shell when creating a new screen window # ~/.bashrc is invoked whenever creating a new screen window # so all my bash aliases are available from within screen too shell -${SHELL} # The shelltitle specified is an auto-title that would expect the prompt and the typed command to look something like the following: # $ fortune # (it looks after the '$ ' for the command name). The window status would show the name "fortune" while the command was running, and revert to "bash" upon completion. shelltitle "$ |bash" #avoid startup message startup_message off hardstatus alwayslastline #hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}' hardstatus string '%{= kG}[ %{G}%H %{g}][%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{B} %d/%m %{W}%c %{g}]' # Use the function keys to immediately switch to corresponding windows # (instead of having to press ^a0, ^a1 etc - which also still work, btw) bindkey -k k1 select 1 bindkey -k k2 select 2 bindkey -k k3 select 3 bindkey -k k4 select 4 bindkey -k k5 select 5 bindkey -k k6 select 6 bindkey -k k7 select 7 bindkey -k k8 select 8 bindkey -k k9 select 9 bindkey -k k; select 10 bindkey -k F1 select 11 bindkey -k F2 select 12 # go to next/previous window using ctrl+ right and left arrows # this interferes with word-back and word-ahead on ubuntu, hence disabled: # bindkey ^[[1;5D prev # bindkey ^[[1;5C next # set the scrollback buffer to hold the last 5000 lines defscrollback 5000sources:
petrichor (/'pe - tri - kor'/) is the familiar scent of rain on dry earth
this tech blog is the wafting fragrance of my geeky outpourings, one post at a time
Saturday, July 24, 2010
linux: my ~/.screenrc file
This is the .screenrc file that has evolved as my current favorite over time - both for cygwin and native linux shells.
Labels:
linux
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment