diff options
Diffstat (limited to '.bash')
| -rw-r--r-- | .bash/vars.bash | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.bash/vars.bash b/.bash/vars.bash index 29a3dfd..0bdb5d5 100644 --- a/.bash/vars.bash +++ b/.bash/vars.bash @@ -94,6 +94,15 @@ if [ -x '/usr/bin/ruby' ]; then fi fi +# ----- RUST ----- # +# Include local crates' binary path: +cargopath="${HOME}/.cargo/bin" +if [ -d "$cargopath" ]; then + if ! printf '%b' "$PATH" | grep -P "(^|:)${cargopath}(:|$)" > /dev/null; then + PATH="${PATH}:$cargopath" + fi +fi + # ----- MISC ----- # # nopaste export NOPASTE_SERVICES='pastebin nopaste' |
