Skip to content

Commit

Permalink
feat: use zshenv over zshrc in setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gautamprikshit1 committed Jan 20, 2024
1 parent aace0e5 commit a133339
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/command/setup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit a133339

Please sign in to comment.