shell: add cargo bin folder to PATH

This commit is contained in:
PowerUser64 2022-08-26 21:07:38 -07:00
parent b83d60c5e0
commit 34362420ce

View file

@ -42,6 +42,8 @@ export ZLE_RPROMPT_INDENT=0
# Move zinit to where it should go # Move zinit to where it should go
export ZINIT_HOME_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/zinit" 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) # Set documents directory (auto set to the repo the file ~/todo points to is in)
if [ -h ~/todo ] && command -v git > /dev/null; then if [ -h ~/todo ] && command -v git > /dev/null; then