From a133339800cb4a427df8e5599933ece84134f054 Mon Sep 17 00:00:00 2001 From: gautam Date: Sat, 20 Jan 2024 11:41:32 +0530 Subject: [PATCH] feat: use zshenv over zshrc in setup --- src/command/setup.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/command/setup.rs b/src/command/setup.rs index a6c5e09842..2f1fd771b8 100644 --- a/src/command/setup.rs +++ b/src/command/setup.rs @@ -122,9 +122,13 @@ mod os { Path::new(&zdotdir_env) }; + let zshenv = zdotdir.join(".zshenv"); + let zshrc = zdotdir.join(".zshrc"); - if shell.contains("zsh") || zshrc.exists() { + if shell.contains("zsh") || zshenv.exists() { + profiles.push(zshenv); + } else if zshrc.exists() { profiles.push(zshrc); } }