Created
January 2, 2012 17:32
-
-
Save notsobad/1551463 to your computer and use it in GitHub Desktop.
screen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#set coding | |
#defencoding GBK | |
#encoding UTF-8 GBK | |
#see the startup message | |
termcapinfo xterm-color|xterm|xterms|xs|rxvt ti@:te@ | |
startup_message off | |
term xterm | |
##use ` as the Global Key | |
### escape `` | |
###set a biger buffer | |
defscrollback 409600 | |
##设置状态栏 | |
hardstatus alwayslastline | |
shelltitle "$|bash" | |
hardstatus string '%{= kG}[ %{G}%c:%s %{g}][%= %{= kw}%?%-Lw%?%{Y}%n*%f%t %{K}%?%+Lw%?%= %{kG}][ %{C}(F8)Screen (F9)Title (F10)Detach (F11)Prev (F12)Next %{kg}][%{kG} %l %Y/%m/%d %{kG}]' | |
# a short version, can use C-a | |
#hardstatus string '%{= kg}[ %{G}%c:%s %{g}][%= %{= kw}%?%-Lw%?%{Y}%n*%f%t %{K}%?%+Lw%?%= %{g}][%{kG} %D %Y/%m/%d %{g}]' | |
# | |
#shutdown the noise | |
vbell off | |
# | |
# w to show the window list | |
bind w windowlist -b | |
bind ^w windowlist -b | |
###initial apps to run | |
screen -t python 2 python | |
#screen -t vps 2 ssh vps -D 9999 | |
select 0 | |
##进行快捷键的绑定 | |
bindkey -k k8 screen | |
bindkey -k k9 title | |
bindkey -k k; detach | |
bindkey -k F3 prev | |
bindkey -k F4 next | |
bindkey -k k4 quit | |
attrcolor u "-u B" | |
autodetach on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment