summaryrefslogtreecommitdiff
path: root/zsh/.zshenv
diff options
context:
space:
mode:
authorMichaël Ball <michael@Michaels-MacBook-Pro.local>2024-07-16 16:12:12 +0100
committerMichaël Ball <michael@Michaels-MacBook-Pro.local>2024-07-16 16:12:12 +0100
commit4385c252eb461a0ec9dbf9569a8f9ef7f0664289 (patch)
treede1005fbc0274eea549dc42ca5be17101b937463 /zsh/.zshenv
Initial commit
Diffstat (limited to 'zsh/.zshenv')
-rw-r--r--zsh/.zshenv12
1 files changed, 12 insertions, 0 deletions
diff --git a/zsh/.zshenv b/zsh/.zshenv
new file mode 100644
index 0000000..e7aa6ab
--- /dev/null
+++ b/zsh/.zshenv
@@ -0,0 +1,12 @@
+if [[ -d $HOME/.npm-packages/bin ]] && [[ ! $PATH == *"$HOME/.npm-packages/bin"* ]] {
+ export PATH="$HOME/.npm-packages/bin:$PATH"
+}
+
+if [[ -d $HOME/.cargo/bin ]] && [[ ! $PATH == *"$HOME/.cargo/bin"* ]] {
+ export PATH="$HOME/.cargo/bin:$PATH"
+}
+
+if [[ -d $HOME/.local/bin ]] && [[ ! $PATH == *"$HOME/.local/bin"* ]] {
+ export PATH="$HOME/.local/bin:$PATH"
+}
+. "$HOME/.cargo/env"