summary refs log tree commit diff
path: root/dot_config
diff options
context:
space:
mode:
authorAlen <alen@dotfiles.xyz>2025-01-19 19:08:56 +0400
committerAlen <alen@dotfiles.xyz>2025-01-19 19:08:56 +0400
commit7163e62ae9a1897ce051d2b4323ef8a1e2c1e2fc (patch)
tree4708eda83f07675e9954aa465b79a2277da49ecb /dot_config
parent94ad728f49ceb99ab9c75a8ac5edbfcd708066dd (diff)
Improve Rust PATH adding
Diffstat (limited to 'dot_config')
-rw-r--r--dot_config/zsh/dot_zshrc5
1 files changed, 3 insertions, 2 deletions
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc
index d852d4c..642957b 100644
--- a/dot_config/zsh/dot_zshrc
+++ b/dot_config/zsh/dot_zshrc
@@ -142,8 +142,9 @@ fi
 export FZFZ_RECENT_DIRS_TOOL="fasd"
 
 # Rust
-export PATH="${PATH}:${HOME}/.cargo/bin"
-
+if [[ -d "${HOME}/.cargo/bin" ]]; then
+    export PATH="${PATH}:${HOME}/.cargo/bin"
+fi
 
 safari_history() {
   sqlite3 -box -readonly ~/Library/Safari/History.db <<SQL