Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 93abb49

Browse files
committed
Complete with the command's basename
See xonsh/xonsh#4104
1 parent 84bcbde commit 93abb49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bash_completion.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,7 @@ def bash_completions(prefix, line, begidx, endidx, env=None, paths=None,
318318

319319
splt = line.split()
320320
cmd = splt[0]
321+
cmd = os.path.basename(cmd)
321322
idx = n = 0
322323
prev = ''
323324
for n, tok in enumerate(splt):

0 commit comments

Comments
 (0)