Getting urxvt to launch URLs

logo

I’ve had this in my ~/.Xdefaults for a while, but it’s only recently with the latest perl package updates that it started to work. The first time it worked was a pleasant surprise! Whenever there is a URL looking piece of text in a rxvt-unicode window, it will launch it with Firefox in a new tab. Tremendous!

URxvt.perl-ext-common: default,matcher
URxvt.perl-ext: default,matcher
URxvt.urlLauncher: firefox
URxvt.matcher.button: 1
URxvt.matcher.pattern.1: \\bwww\\.[\\w-]+\\.[\\w./?&@#-]*[\\w/-]

Related Posts

Tags:
Posted in solutions on April 2nd, 2008 | No Comments »


rxvt doesn’t resize after vim

logo

I never resize a terminal window while running vim, because although vim handles the resize intelligently, once you exit vim the screen is messed up. Even if you run reset, the COLUMN variable is not set correctly and moving through history is a mess. You end up having to close the window and cd back into the directory you were in. Inconvenient.

Today I learned the solution is to add the following line to your ~/.bashrc:

shopt -s checkwinsize

There is more information about other shopt options in the man page, but in a nutshell:

If set, bash checks the window size after each command and, if necessary, updates the values of LINES and COLUMNS


Related Posts

Tags:
Posted in linux, solutions on September 27th, 2007 | No Comments »

rxvt-unicode

logo

I’ve been a happy Eterm user for quite a while now. But, recently, I decided that there is no good reason for opening Firefox or OpenOffice just to compose emails and text in Russian. I need a terminal emulator that is fast, customizable, and supports Unicode, ie. UTF-8.

» Read the rest of this entry


Related Posts

Tags:
Posted in linux, solutions on January 22nd, 2007 | No Comments »