summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorCryxtalix <fgx8p9t@protonmail.com>2025-02-11 16:35:32 +0800
committerCryxtalix <fgx8p9t@protonmail.com>2025-02-11 16:35:32 +0800
commitd328cf09d100031736c4b78e645bc3724839f023 (patch)
tree099453329127a9cb8edbd94fe988b00d52974ded /.bashrc
parent5e30064e83d8b401269c057fcf027132c895476a (diff)
Fixed rust in bashrc
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc8
1 files changed, 5 insertions, 3 deletions
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";