MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / _detect_rc_file

Function _detect_rc_file

uncommon_route/cli.py:1659–1665  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1657
1658
1659def _detect_rc_file() -> str:
1660 shell = os.environ.get("SHELL", "")
1661 if "zsh" in shell:
1662 return "~/.zshrc"
1663 if "fish" in shell:
1664 return "~/.config/fish/config.fish"
1665 return "~/.bashrc"
1666
1667
1668def _setup_env_display() -> tuple[str, str, str]:

Callers 4

_detect_rc_pathFunction · 0.85
_setup_claude_codeFunction · 0.85
_setup_codexFunction · 0.85
_setup_openaiFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected