install Rust

This commit is contained in:
Morgan Wattiez 2019-11-16 13:29:52 +01:00
parent 4a5fca7875
commit 60428a5f01
6 changed files with 12 additions and 3 deletions

View File

@ -128,3 +128,4 @@ brew "tflint" # terraform linter
brew "ktlint" # kotlin linter brew "ktlint" # kotlin linter
brew "cmake" # compiler, was needed for compiling YouCompleteMe, see https://github.com/ycm-core/YouCompleteMe brew "cmake" # compiler, was needed for compiling YouCompleteMe, see https://github.com/ycm-core/YouCompleteMe
brew "zola" # a simple and fast static site generator brew "zola" # a simple and fast static site generator
brew "rustup" # Install Rust

View File

@ -0,0 +1,2 @@
export PATH="$HOME/.cargo/bin:$PATH"

View File

@ -167,6 +167,9 @@ case "$(uname -s)" in
;; ;;
esac esac
# Use rustup to install the Rust compiler (rustc) and the Rust package manager (cargo).
rustup-init -y
# Upgrade # Upgrade
~/.scripts/upgrade.sh ~/.scripts/upgrade.sh

View File

@ -16,4 +16,4 @@ pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n
pip freeze > ~/requirements.txt pip freeze > ~/requirements.txt
# Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim # Update VIM plugins installed via Vundle https://github.com/VundleVim/Vundle.vim
vim +PluginUpdate +qall vim +PluginUpdate +qall
rustup-update

1
dot_scripts/version.sh Normal file
View File

@ -0,0 +1 @@
rustc --version

View File

@ -116,11 +116,13 @@ export SDKMAN_DIR="$HOME/.sdkman"
case "$(uname -s)" in case "$(uname -s)" in
Darwin) Darwin)
ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip pip3 ln -snf /usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin/pip /usr/local/bin/pip3
export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin" export PATH="$PATH:/usr/local/Cellar/python/3.7.3/Frameworks/Python.framework/Versions/3.7/bin/:/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/bin"
;; ;;
esac esac
. ~/.3llo_config . ~/.3llo_config
export GOPATH="$HOME/go" export GOPATH="$HOME/go"
export PATH="/usr/local/opt/grep/libexec/gnubin:$GOPATH/bin:$PATH" export RUSTPATH="$HOME/.cargo/bin"
export PATH="/usr/local/opt/grep/libexec/gnubin:$GOPATH/bin:$RUSTPATH:$PATH"