Completion (Fish): fix compatibility for old python versions

This commit is contained in:
李通洲 2024-05-22 10:34:07 +08:00
parent 59c853fb01
commit a3dbac7dfc
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3

View File

@ -85,7 +85,8 @@ string match -r -a -g "^###> ?(.*)" < (status -f) | string collect | python3 | s
###> elif type == 'config':
###> print(f'{command_prefix} -x -a "(__fastfetch_complete_config)"')
###> elif type == 'enum':
###> print(f'{command_prefix} -x -a "{' '.join(flag["arg"]["enum"])}"')
###> temp: str = ' '.join(flag["arg"]["enum"])
###> print(f'{command_prefix} -x -a "{temp}"')
###> elif type == 'logo':
###> print(f'{command_prefix} -x -a "(__fastfetch_complete_logo)"')
###> elif type == 'structure':