Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (20 sloc) 0.497 kB
# this is not the ruby you're looking for
require 'fileutils'
alias :V :lambda
Joiner = V do |base|
V do |*others|
File.join(base, *others)
end
end
Home = Joiner[ File.expand_path( '~' ) ]
Cwd = Joiner[ File.expand_path(File.dirname(__FILE__)) ]
Link = V do |target, new|
FileUtils.ln_s Cwd[ target ], Home[ new ] rescue puts("~/#{new} exists.")
end
Link[ 'emacs.el', '.emacs' ]
Link[ '.', '.emacs.d' ]
Git = V do |command, dir|
Dir.chdir(dir) do
`git #{command}`
end
end
Jump to Line
Something went wrong with that request. Please try again.