summary refs log tree commit diff
diff options
context:
space:
mode:
-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