mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-13 20:14:12 +02:00
...
This commit is contained in:
@@ -953,7 +953,7 @@ def macos_version() -> Tuple[int, ...]:
|
||||
return tuple(map(int, platform.mac_ver()[0].split('.')))
|
||||
|
||||
|
||||
@run_once
|
||||
@lru_cache(maxsize=2)
|
||||
def less_version(less_exe: str = 'less') -> int:
|
||||
import subprocess
|
||||
o = subprocess.check_output([less_exe, '-V'], stderr=subprocess.STDOUT).decode()
|
||||
|
||||
Reference in New Issue
Block a user