MCPcopy Create free account
hub / github.com/djcopley/ShellOracle / write_script_home

Function write_script_home

src/shelloracle/bootstrap.py:72–76  ·  view source on GitHub ↗
(shell: str)

Source from the content-addressed store, hash-verified

70
71
72def write_script_home(shell: str) -> None:
73 shelloracle = get_bundled_script_path(shell).read_bytes()
74 destination = get_script_path(shell)
75 destination.write_bytes(shelloracle)
76 print_info(f"Successfully wrote key bindings to {replace_home_with_tilde(destination)}")
77
78
79def update_rc(shell: str) -> None:

Callers 1

install_keybindingsFunction · 0.85

Calls 4

get_bundled_script_pathFunction · 0.85
get_script_pathFunction · 0.85
print_infoFunction · 0.85
replace_home_with_tildeFunction · 0.85

Tested by

no test coverage detected