From 7163e62ae9a1897ce051d2b4323ef8a1e2c1e2fc Mon Sep 17 00:00:00 2001 From: Alen Date: Sun, 19 Jan 2025 19:08:56 +0400 Subject: Improve Rust PATH adding --- dot_config/zsh/dot_zshrc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dot_config/zsh') 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 <