总算整了个比较像样的screenrc
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
总算整了个比较像样的screenrc
如图。真是不试不知道,screen可以如此好用。
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
ee: 我都觉得字体有时候不是太舒服,不过自己都说不上来问题在哪里。
这个配置可以用F11和F12切换screen窗口,F10改名。始终在屏幕最下方显示hardstatus,为了整这个小状态栏,花了我快一个小时。
我比较喜欢用zsh,不喜欢的人可以把shell zsh注释掉。需要注意的是screen的快捷键如果和vim的冲突的话,vim的快捷键会不起作用,所以我只是把F10,F11,F12绑给了screen。这个screenrc其实还比较粗糙,还有很多东西需要挖掘——比如我现在用screen的时候urxvt的滚动条就不起作用了。
这个配置可以用F11和F12切换screen窗口,F10改名。始终在屏幕最下方显示hardstatus,为了整这个小状态栏,花了我快一个小时。
我比较喜欢用zsh,不喜欢的人可以把shell zsh注释掉。需要注意的是screen的快捷键如果和vim的冲突的话,vim的快捷键会不起作用,所以我只是把F10,F11,F12绑给了screen。这个screenrc其实还比较粗糙,还有很多东西需要挖掘——比如我现在用screen的时候urxvt的滚动条就不起作用了。
代码: 全选
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
### Created by Brad Sims 25/06/2004
### Modified by Roy Zuo 08/08/2006
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
## Explanation of hardstatus line ##
# Ignore the ' marks if you use these examples for yourself
# Note that if you want to use the color brown under konsole
# You actually use bright yellow (%{Y}).
# Note the embeded space after the colon, I feel
# it just looks nicer with a blank between the
# text and console edge:
# '%{=b}%{G} Screen(s): '
# This prints the window listing in blue:
# '%{b}%w'
# This right-aligns what follows:
# '%='
# This displays the time (hours and minutes) in 12hr format
# and adds an AM/PM flag, in bold green:
# '%{G}%C%A'
# This displays the day of the week:
# '%D'
#This displays the date in Mon/day/year format:
# and again I embeded a space to give me one space
# between the text and console edge:
# '%M/%d/%Y '
# Green text, time, and date; windows in blue:
hardstatus alwayslastline "%{=b}%{b}%-w%{.BW}%10>%n*%t%{-}%+w%< %=%{kG}%C%A %D, %Y-%m-%d"
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
## Some general options ##
# Turn off start message:
startup_message off # default: on
# Automatically detach on hangup, or the screen will keep eating your memory after the terminal emulator has been terminated.
autodetach on # default: on
# Set messages timeout to one second:
msgwait 1
#use zshell as default shell.
shell zsh
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
## Keybindings ##
# bind F1 to select 1
# bind F7 to detach screen session from this terminal
# bind F8 to kill current screen window.
# bind F9 to create a new screen
# bind F10 to rename current screen window
# bind F11 to move to previous window
# bind F12 to move to next window
#bindkey -k k1 select 1
#bindkey -k k7 detach
#bindkey -k k8 kill
#bindkey -k k9 screen
bindkey -k k; title
bindkey -k F1 prev
bindkey -k F2 next
# =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= #
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
-
- 帖子: 31
- 注册时间: 2008-06-09 13:48
Re: 总算整了个比较像样的screenrc
太好了,谢谢楼主。
-
- 帖子: 2841
- 注册时间: 2006-09-11 22:47
Re: 总算整了个比较像样的screenrc
代码: 全选
termcapinfo xterm|xterms|xs|rxvt ti@:te@
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
Re: 总算整了个比较像样的screenrc
2006年的都被挖了
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
-
- 帖子: 50
- 注册时间: 2007-02-14 9:43
Re: 总算整了个比较像样的screenrc
恩,被挖上来我才可以google到。。。。。
-
- 帖子: 817
- 注册时间: 2008-11-13 16:03
Re: 总算整了个比较像样的screenrc
很厉害啊,挖的很辛苦吧
- roylez
- 帖子: 1928
- 注册时间: 2005-10-04 10:59
- 来自: 上海
Re: 总算整了个比较像样的screenrc
笨笨,看我的签名档。buptlpf 写了:恩,被挖上来我才可以google到。。。。。
✡ 弄个dropbox空间来备份文件或者做私人代码服务器?
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info
✡ 配置:[url]git://github.com/roylez/dotfiles.git[/url]
✡ 主页:http://roylez.heroku.com
✡ 各种稀奇玩意儿:http://dooloo.info