From e880636906890b13d1953830b34318ac5d86590d Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Wed, 4 May 2022 20:41:34 -0400 Subject: [PATCH] Install Rust --- Makefile | 13 ++++++++++++- zsh/.zshenv | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 64d990a..c67cf07 100644 --- a/Makefile +++ b/Makefile @@ -13,10 +13,17 @@ mac: sudo mv /etc/{zprofile,zprofile.old} brew install coreutils gnu-sed direnv fzf git stow the_silver_searcher tmux vim zsh + javascript: nodenv-base nodenv-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: curl -fLo /tmp/alacritty.info https://raw.githubusercontent.com/alacritty/alacritty/master/extra/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 - rbenv-base: if test ! -d ~/.rbenv ; then \ git clone https://github.com/rbenv/rbenv.git ~/.rbenv ; \ @@ -46,3 +52,8 @@ nodenv-build: if test ! -d ~/.nodenv/plugins/node-build ; then \ git clone https://github.com/nodenv/node-build.git ~/.nodenv/plugins/node-build ; \ fi + +tfenv: + if test ! -d ~/.tfenv ; then \ + git clone https://github.com/tfutils/tfenv.git ~/.tfenv ; \ + fi diff --git a/zsh/.zshenv b/zsh/.zshenv index 2832a8f..532903a 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -5,6 +5,9 @@ PERSONAL_FPATH="$ZDOTDIR/completions" NODENV_PATH="$HOME/.nodenv/bin" RBENV_PATH="$HOME/.rbenv/bin" +TFENV_PATH="$HOME/.tfenv/bin" + +CARGO_PATH="$HOME/.cargo/bin" if [[ "$OSTYPE" == darwin* ]]; then HOMEBREW_PREFIX="/opt/homebrew" @@ -28,6 +31,8 @@ fi [[ -d "$RBENV_PATH" ]] && PATH="$RBENV_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_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH"