Skip to content

Instantly share code, notes, and snippets.

@compwron
Created October 1, 2014 19:49
Show Gist options
  • Save compwron/86c220dc000085f5c444 to your computer and use it in GitHub Desktop.
Save compwron/86c220dc000085f5c444 to your computer and use it in GitHub Desktop.
pick me a file
files = `git ls-files | grep -v vendor`.split("\n")
a = files[Random.new.rand(files.size)]
p a
`open -a "/Applications/Sublime\ Text.app/" #{a}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment