mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-06 08:01:58 +02:00
Fix command names using undersore instead of hyphens in completion for the shell
This commit is contained in:
@@ -25,7 +25,7 @@ from .rc.base import (
|
||||
|
||||
@lru_cache(maxsize=2)
|
||||
def match_commands() -> Tuple[str, ...]:
|
||||
all_commands = tuple(sorted(all_command_names()))
|
||||
all_commands = tuple(sorted(x.replace('_', '-') for x in all_command_names()))
|
||||
return tuple(sorted(all_commands + ('exit', 'help', 'quit')))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user