wmiirc-rumai

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

commit ff3a75de85747f1367f77c5d2ca0d6bb5badde5c
parent 2af3bef74f764f96acf4b13d81604646c6412c83
Author: Suraj N. Kurapati <sunaku@gmail.com>
Date:   Tue, 12 May 2009 19:07:19 -0700

clean up terminal launcher

Diffstat:
config.yaml | 17++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/config.yaml b/config.yaml @@ -540,28 +540,27 @@ control: # working directory to be the same # as the currently focused terminal. # - root = ENV['HOME'] + work = ENV['HOME'] label = curr_client.label.read rescue '' - label.split(' ').reverse_each do |word| - # - # iterate in reverse order because - # paths are usually at end of label - # - path = File.expand_path(word) + + # iterate in reverse order because + # paths are usually at end of label + label.split(' ').reverse_each do |s| + path = File.expand_path(s) if File.exist? path unless File.directory? path path = File.dirname(path) end - root = path + work = path break end end require 'fileutils' - FileUtils.cd root do + FileUtils.cd work do launch 'urxvt' end