From 34362420ce5fc7ed75f7d472b5e3f787ca8b26f2 Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 26 Aug 2022 21:07:38 -0700 Subject: [PATCH] shell: add cargo bin folder to PATH --- .config/shell/env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/shell/env b/.config/shell/env index 8b8ee0b..0f56cce 100644 --- a/.config/shell/env +++ b/.config/shell/env @@ -42,6 +42,8 @@ export ZLE_RPROMPT_INDENT=0 # Move zinit to where it should go export ZINIT_HOME_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/zinit" +# Add cargo to PATH if it exists +[ -f "$HOME/.cargo/bin" ] && export PATH="$HOME/.cargo/bin:$PATH" # Set documents directory (auto set to the repo the file ~/todo points to is in) if [ -h ~/todo ] && command -v git > /dev/null; then