Install Rust

This commit is contained in:
Andrew Tomaka 2022-05-04 20:41:34 -04:00
parent 87628e0782
commit e880636906
Signed by: atomaka
GPG key ID: 61209BF70A5B18BE
2 changed files with 17 additions and 1 deletions

View file

@ -13,10 +13,17 @@ mac:
sudo mv /etc/{zprofile,zprofile.old} sudo mv /etc/{zprofile,zprofile.old}
brew install coreutils gnu-sed direnv fzf git stow the_silver_searcher tmux vim zsh brew install coreutils gnu-sed direnv fzf git stow the_silver_searcher tmux vim zsh
javascript: nodenv-base nodenv-build javascript: nodenv-base nodenv-build
ruby: rbenv-base rbenv-build ruby: rbenv-base rbenv-build
rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --no-modify-path
terraform: tfenv
alacritty: alacritty:
curl -fLo /tmp/alacritty.info https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info curl -fLo /tmp/alacritty.info https://raw.githubusercontent.com/alacritty/alacritty/master/extra/alacritty.info
sudo tic -xe alacritty,alacritty-direct /tmp/alacritty.info sudo tic -xe alacritty,alacritty-direct /tmp/alacritty.info
@ -26,7 +33,6 @@ vim:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
rbenv-base: rbenv-base:
if test ! -d ~/.rbenv ; then \ if test ! -d ~/.rbenv ; then \
git clone https://github.com/rbenv/rbenv.git ~/.rbenv ; \ git clone https://github.com/rbenv/rbenv.git ~/.rbenv ; \
@ -46,3 +52,8 @@ nodenv-build:
if test ! -d ~/.nodenv/plugins/node-build ; then \ if test ! -d ~/.nodenv/plugins/node-build ; then \
git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build ; \ git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build ; \
fi fi
tfenv:
if test ! -d ~/.tfenv ; then \
git clone https://github.com/tfutils/tfenv.git ~/.tfenv ; \
fi

View file

@ -5,6 +5,9 @@ PERSONAL_FPATH="$ZDOTDIR/completions"
NODENV_PATH="$HOME/.nodenv/bin" NODENV_PATH="$HOME/.nodenv/bin"
RBENV_PATH="$HOME/.rbenv/bin" RBENV_PATH="$HOME/.rbenv/bin"
TFENV_PATH="$HOME/.tfenv/bin"
CARGO_PATH="$HOME/.cargo/bin"
if [[ "$OSTYPE" == darwin* ]]; then if [[ "$OSTYPE" == darwin* ]]; then
HOMEBREW_PREFIX="/opt/homebrew" HOMEBREW_PREFIX="/opt/homebrew"
@ -28,6 +31,8 @@ fi
[[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH" [[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH"
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH" [[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
[[ -d "$TFENV_PATH" ]] && PATH="$TFENV_PATH:$PATH"
[[ -d "$CARGO_PATH" ]] && PATH="$CARGO_PATH:$PATH"
[[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH" [[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH"
[[ -d "$PERSONAL_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH" [[ -d "$PERSONAL_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH"