Skip to content

Commit c6b3772

Browse files
ProfDieseljlcyrus-and
authored
Discard dot files in the init dirs
Co-authored-by: jl <jl@poltergeist> Co-authored-by: Andrea Cardaci <[email protected]>
1 parent f8bb46d commit c6b3772

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gdbinit

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,8 @@ class Dashboard(gdb.Command):
650650
# process all the init files in order
651651
for root, dirs, files in itertools.chain.from_iterable(inits_dirs):
652652
dirs.sort()
653-
for init in sorted(files):
653+
# skipping dotfiles
654+
for init in sorted(file for file in files if not file.startswith('.')):
654655
path = os.path.join(root, init)
655656
_, ext = os.path.splitext(path)
656657
# either load Python files or GDB

0 commit comments

Comments
 (0)