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 <cyrus.and@gmail.com>
  • Loading branch information
3 people committed Apr 13, 2023
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
Expand Up @@ -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
Expand Down

0 comments on commit c6b3772

Please sign in to comment.