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

Function install_keybindings

src/shelloracle/bootstrap.py:125–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

123
124
125def install_keybindings() -> None:
126 if not (shells := get_installed_shells()):
127 print_warning(
128 f"Cannot install keybindings: no compatible shells found. Supported shells: {' '.join(supported_shells)}"
129 )
130 return
131 if confirm("Enable terminal keybindings and update rc?", suffix=" ([y]/n) ") is False:
132 return
133 for shell in shells:
134 write_script_home(shell)
135 update_rc(shell)
136
137
138def user_configure_settings(provider: type[Provider]) -> dict[str, Any]:

Callers 1

bootstrap_shelloracleFunction · 0.85

Calls 4

get_installed_shellsFunction · 0.85
print_warningFunction · 0.85
write_script_homeFunction · 0.85
update_rcFunction · 0.85

Tested by

no test coverage detected