mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-10 22:24:24 +02:00
Only modify .zshrc to add shell integration if it already exists
This commit is contained in:
@@ -53,7 +53,8 @@ def setup_integration(shell_name: str, rc_path: str, template: str = posix_templ
|
||||
def setup_zsh_integration() -> None:
|
||||
base = os.environ.get('ZDOTDIR', os.path.expanduser('~'))
|
||||
rc = os.path.join(base, '.zshrc')
|
||||
setup_integration('zsh', rc)
|
||||
if os.path.exists(rc):
|
||||
setup_integration('zsh', rc)
|
||||
|
||||
|
||||
def setup_bash_integration() -> None:
|
||||
|
||||
Reference in New Issue
Block a user