Changeset 15127
- Timestamp:
- 07/03/08 23:10:18 (8 weeks ago)
- Location:
- dotfiles
- Files:
-
- 2 modified
-
screen/cho45/.screen/pid2screen (modified) (1 diff)
-
vim/cho45/.vim/vim-wrapper.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dotfiles/screen/cho45/.screen/pid2screen
r15126 r15127 5 5 pid = ARGV[0] 6 6 tty = `/bin/ps -o tty= -p #{pid}`.strip 7 win = Pathname.glob("/tmp/screen-tty-*").find {|i| i.read[tty] } .read7 win = Pathname.glob("/tmp/screen-tty-*").find {|i| i.read[tty] } 8 8 if tty.empty? || !win 9 9 exit 1 10 10 else 11 puts win [/\d+$/]11 puts win.to_s[/\d+$/] 12 12 exit 0 13 13 end -
dotfiles/vim/cho45/.vim/vim-wrapper.rb
r15125 r15127 62 62 63 63 raise "swap not found" unless pid 64 raise "swap not found" unless target.realpath (true) == Pathname.new(fname).realpath(true)64 raise "swap not found" unless target.realpath == Pathname.new(fname).expand_path.realpath 65 65 66 66 winnum = `pid2screen #{pid}`.strip
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)