diff --git a/cheat b/cheat index 6a054e3..0af41db 100755 --- a/cheat +++ b/cheat @@ -41,7 +41,9 @@ def cheat_files(cheat_directories): for cheat_dir in reversed(cheat_directories): cheats.update(dict([(cheat, cheat_dir) for cheat in os.listdir(cheat_dir) - if not cheat.startswith('.') + if not cheat.endswith('md') + and not cheat.startswith('.') + and not cheat.startswith('LICENSE') and not cheat.startswith('__')])) return cheats @@ -82,6 +84,7 @@ def main(): # if it does not, say so else: print 'No cheatsheet found for %s.' % keyphrase + def pretty_print(filename):