Skip to content

Instantly share code, notes, and snippets.

View jeremyjs's full-sized avatar

Jeremy Meyer jeremyjs

  • San Francisco, CA
View GitHub Profile
# change to the 'myfolder' directory within the current directory
$ cd myfolder/
$ cd ./myfolder
$ cd myfolder
$ cd ../myfolder_parent/myfolder
# change to the 'usr' directory within the root directory
$ cd /usr/
$ cd /usr
task :add_submodule, [:a0, :a1] do |t, args|
install_path = "janus/#{args[:a1]}"
puts "*installing #{args[:a0]} to #{install_path}"
`git submodule add #{args[:a0]} #{install_path}`
end