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

Function get_bundled_script_path

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

Source from the content-addressed store, hash-verified

45
46
47def get_bundled_script_path(shell: str) -> Path:
48 shell_dir = Path(__file__).parent / "shell"
49 if shell == "zsh":
50 return shell_dir / "shelloracle.zsh"
51 if shell == "fish":
52 return shell_dir / "shelloracle.fish"
53 return shell_dir / "shelloracle.bash"
54
55
56def get_script_path(shell: str) -> Path:

Callers 1

write_script_homeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected