mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
DRYer
Make CLI Only kittens run in overlay windows when run via the kitten action mapping by default.
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
import os
|
||||
if __name__ == '__main__':
|
||||
import os
|
||||
import sys
|
||||
|
||||
from kitty.constants import kitten_exe
|
||||
|
||||
|
||||
def main(args: 'list[str]') -> None:
|
||||
# allow running this kitten via map key kitten choose-fonts
|
||||
os.execlp(kitten_exe(), 'kitten', *args)
|
||||
from kitty.constants import kitten_exe
|
||||
os.execlp(kitten_exe(), 'kitten', *sys.argv)
|
||||
|
||||
Reference in New Issue
Block a user