diff --git a/sgpt/utils.py b/sgpt/utils.py index f33430e..d49af9a 100644 --- a/sgpt/utils.py +++ b/sgpt/utils.py @@ -73,11 +73,11 @@ def install_shell_integration(*_args: Any) -> None: # TODO: Add support for Windows. # TODO: Implement updates. shell = os.getenv("SHELL", "") - if shell == "/bin/zsh": + if "zsh" in shell: typer.echo("Installing ZSH integration...") with open(os.path.expanduser("~/.zshrc"), "a", encoding="utf-8") as file: file.write(zsh_integration) - elif shell == "/bin/bash": + elif "bash" in shell: typer.echo("Installing Bash integration...") with open(os.path.expanduser("~/.bashrc"), "a", encoding="utf-8") as file: file.write(bash_integration)