wmiirc-rumai

git clone git://oldgit.suckless.org/wmiirc-rumai/
Log | Files | Refs | README | LICENSE

commit be8819dbe4e43634c8ee91d5fc560cf2d5c2348e
parent 0bb9f5d19b8d6dc6d9698ec59805ad2fa42b9495
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Mon, 19 Jan 2009 23:31:24 -0800

add support for terminal window title having only the PWD path

Diffstat:
wmiirc-config.rb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wmiirc-config.rb b/wmiirc-config.rb @@ -558,7 +558,7 @@ EOF # to be the same as the currently focused terminal. key Key::EXECUTE + 'x' do c = curr_client - d = File.expand_path(c.label.read.sub(/^.*?:\s+/, '')) rescue nil + d = File.expand_path(c.label.read.split(' ', 2).last) rescue nil d = ENV['HOME'] unless File.directory? d.to_s FileUtils.cd(d) do