summaryrefslogtreecommitdiffstats
path: root/.profile
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2024-09-05 16:38:23 +0000
committerTyler Davis <tyler@gluecode.net>2024-09-05 16:38:37 +0000
commiteb01393fc83908ecb34da6f8cfce093f9f2e3359 (patch)
tree3d6bb9bbc8ff23882eb2831b28d6bb7de4420f12 /.profile
parent92021079bed910e1b011435c8b43b6293b212c0e (diff)
downloaddotfiles-eb01393fc83908ecb34da6f8cfce093f9f2e3359.tar.gz
dotfiles-eb01393fc83908ecb34da6f8cfce093f9f2e3359.zip
sh: fix rust path
Diffstat (limited to '.profile')
-rw-r--r--.profile4
1 files changed, 1 insertions, 3 deletions
diff --git a/.profile b/.profile
index 27aa076..1d312e2 100644
--- a/.profile
+++ b/.profile
@@ -122,9 +122,6 @@ fi
# == Rust Tools ==#
# Add Rust paths if present
if [ -d "$HOME/.cargo/bin" ]; then
- if [ -f "$HOME/.cargo/env" ]; then
- source $HOME/.cargo/env
- fi
export PATH=$HOME/.cargo/bin:$PATH
fi
@@ -140,6 +137,7 @@ alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# dotfiles config --local status.showUntrackedFiles no
## == END DOTFILES ==
+# Dedupe path entries
export PATH=`printf %s "$PATH" | awk -v RS=: '{ if (!arr[$0]++) {printf("%s%s",!ln++?"":":",$0)}}'`
export HISTFILE=~/.history