diff --git a/pkgs/zsh.nix b/pkgs/zsh.nix index ace5982..662b22f 100644 --- a/pkgs/zsh.nix +++ b/pkgs/zsh.nix @@ -22,6 +22,6 @@ theme = "agnoster"; }; - shellInit = "eval \"$(zoxide init zsh --cmd cd)\""; + shellInit = "if [[ $(tty) == \"/dev/tty\"* ]]; then; bash; fi; eval \"$(zoxide init zsh --cmd cd)\""; }; }