rxvt-unicode 的 perl 扩展

rxvt-unicode 有内嵌 perl 功能, 所以可以实现好用的扩展功能. 默认自带了几个插件, 我用 matcher 来实现点击链接自动用 firefox 打开, 另外利用 selection-pastebin 实现 nopaste 选中的文本也很方便:

URxvt.scrollBar:       False
URxvt.geometry:        80x32
URxvt.font:            xft:DejaVu Sans Mono:size=9,xft:NSimsun:size=9
URxvt.background:      black
URxvt.foreground:      white
URxvt.cursorBlink:     true
URxvt.color12:         DodgerBlue
URxvt.cursorColor:     orange
URxvt.termName:        rxvt
URxvt.iso14755_52:     false
URxvt.perl-ext-common: default,matcher,selection-pastebin,-selection-popup,-option-popup
URxvt.urlLauncher:     firefox
URxvt.matcher.button:  1
URxvt.keysym.C-Delete: perl:matcher
URxvt.keysym.C-M-p: perl:selection-pastebin:remote-pastebin
URxvt.selection-pastebin.cmd: firefox `cat "%" | nopaste`

看上去就像这样, 留意加了下划线的 URL:
rxvt screenshot

更多的 perl 插件和内嵌 perl 功能的说明可以查看

$ man urxvtperl

把终端模拟器换成rxvt了

不满gnome终端太慢,安装了rxvt

sudo apt-get install rxvt-unicode-ml

配置文件 ~/.Xresources

rxvt.scrollBar_right: True
rxvt.geometry:        80x32
rxvt.font:            xft:Courier:size=10,xft:NSimsun:size=12
rxvt.background:      black
rxvt.foreground:      white
rxvt.cursorBlink:     true
rxvt.saveLines:       10000
rxvt.color12:         #AAAAFF
rxvt.cursorColor:     orange
rxvt.termName:        rxvt

  1. Welcome ~

    Life is like a box of chocolates,
    you never know
    what you gonna get.


  2. 因为某原因, google blog 暂时停止更新..
    by AutumnCat, 2007-6-12
  3. 最新文章

  4. 最新评论

  5. 分类

  6. 归档