Skip to content

Commit

Permalink
Discard dot files in the init dirs
Browse files Browse the repository at this point in the history
Co-authored-by: jl <jl@poltergeist>
Co-authored-by: Andrea Cardaci <[email protected]>
3 people authored Apr 13, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent f8bb46d commit c6b3772
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gdbinit
Original file line number Diff line number Diff line change
@@ -650,7 +650,8 @@ class Dashboard(gdb.Command):
# process all the init files in order
for root, dirs, files in itertools.chain.from_iterable(inits_dirs):
dirs.sort()
for init in sorted(files):
# skipping dotfiles
for init in sorted(file for file in files if not file.startswith('.')):
path = os.path.join(root, init)
_, ext = os.path.splitext(path)
# either load Python files or GDB

0 comments on commit c6b3772

Please sign in to comment.