File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 15
15
if which realpath; then # No realpath on macOS, but also not needed there
16
16
export HOME=" $( realpath " $HOME " ) " # Needed to de-confuse nvm when /home is a symlink
17
17
fi
18
+
19
+ echo " Setting up Rust"
20
+ curl --proto ' =https' --tlsv1.2 -sSf https://sh.rustup.rs | sh /dev/stdin -y
21
+
18
22
# Some Node.js driver versions leave a ~/.npmrc file lying around
19
23
# that breaks nvm because it contains a 'prefix=' option (pointing
20
24
# to a directory that no longer exists anyway).
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ if [ "$OS" != "Windows_NT" ]; then
29
29
if which realpath; then # No realpath on macOS, but also not needed there
30
30
export HOME=" $( realpath " $HOME " ) " # Needed to de-confuse nvm when /home is a symlink
31
31
fi
32
+ source $HOME /.cargo/env
33
+
32
34
export NVM_DIR=" $BASEDIR /.nvm"
33
35
echo " Setting NVM environment home: $NVM_DIR "
34
36
[ -s " $NVM_DIR /nvm.sh" ] && \. " $NVM_DIR /nvm.sh"
You can’t perform that action at this time.
0 commit comments