From d328cf09d100031736c4b78e645bc3724839f023 Mon Sep 17 00:00:00 2001 From: Cryxtalix Date: Tue, 11 Feb 2025 16:35:32 +0800 Subject: Fixed rust in bashrc --- .bashrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 9c41090..262a7c7 100644 --- a/.bashrc +++ b/.bashrc @@ -11,6 +11,11 @@ if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]; then fi export PATH +# Rust +if [ -d "$HOME/.cargo" ]; then + . "$HOME/.cargo/env" +fi + # Uncomment the following line if you don't like systemctl's auto-paging feature: # export SYSTEMD_PAGER= @@ -40,6 +45,3 @@ alias c="clear"; alias x="exit"; alias v="nvim"; alias nv-watch="watch -n1 nvidia-smi"; - -# Rust -. "$HOME/.cargo/env"; -- cgit