DRYer
This commit is contained in:
parent
0656a5079a
commit
779a06fa72
2 changed files with 3 additions and 2 deletions
|
|
@ -20,6 +20,7 @@ class Version(NamedTuple):
|
|||
|
||||
|
||||
appname: str = 'kitty'
|
||||
kitty_face = '🐱'
|
||||
version: Version = Version(0, 19, 3)
|
||||
str_version: str = '.'.join(map(str, version))
|
||||
_plat = sys.platform.lower()
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
title
|
||||
)
|
||||
from .cli_stub import RCOptions
|
||||
from .constants import cache_dir, is_macos, version
|
||||
from .constants import cache_dir, is_macos, version, kitty_face
|
||||
from .rc.base import (
|
||||
RemoteCommand, all_command_names, command_for_name,
|
||||
display_subcommand_help, parse_subcommand_cli
|
||||
|
|
@ -169,7 +169,7 @@ def real_main(global_opts: RCOptions) -> None:
|
|||
while True:
|
||||
try:
|
||||
try:
|
||||
scmdline = input('🐱 ')
|
||||
scmdline = input(f'{kitty_face} ')
|
||||
except UnicodeEncodeError:
|
||||
scmdline = input('kitty> ')
|
||||
except EOFError:
|
||||
|
|
|
|||
Loading…
Reference in a new issue