|
|
|
|
|
by lost-theory
4280 days ago
|
|
Here's a python one-liner that will do it: import os; import random; os.system("vim %s +%s" % (lambda f: (f, random.randint(1,len(open(f).readlines())+1)))(random.choice([f for f in sum([[os.path.join(p, f) for f in fs] for (p, ds, fs) in os.walk(".")], []) if not ".git" in f]))) |
|