Added rustup. Code cleanup

This commit is contained in:
Christoffer Martinsson 2023-06-12 23:06:15 +02:00
parent 67807e8e96
commit d07602786f

View File

@ -5,7 +5,7 @@ set -e
printf -- '\033[33m Installing system packages\n\033[37m'
sudo apt update && sudo apt -y upgrade
sudo apt -y install ninja-build gettext cmake unzip curl python3 python3-pip python3-venv \
build-essential libssl-dev libffi-dev python3-dev file tmux
build-essential libssl-dev libffi-dev python3-dev file tmux libudev-dev
# Install VirtualHere client
printf -- '\033[33m Installing VirtualHere client\n\033[37m'
@ -37,10 +37,23 @@ make CMAKE_BUILD_TYPE=RelWithDebInfo
cd build && cpack -G DEB && sudo dpkg -i nvim-linux64.deb
if [ -d ~/neovim ]; then rm -rf ~/neovim; fi
# Install rust
printf -- '\033[33m Installing Rust\n\033[37m'
cd ~
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup self update
rustup update stable
# Install rust embedded stuff
printf -- '\033[33m Installing Rust embedded stuff\n\033[37m'
cd ~
rustup target add thumbv6m-none-eabi
cargo install elf2uf2-rs --locked
cargo install probe-run
# Install tree sitter cli
printf -- '\033[33m Installing tree sitter cli\n\033[37m'
cd ~ &&
sudo apt install -y cargo
cd ~
cargo install tree-sitter-cli
# Install ripgrep
@ -113,20 +126,6 @@ cd ~
curl -sL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt install -y nodejs
# # Install NvChad
# printf -- '\033[33m Installing NvChad\n\033[37m'
# if [ ! -d ~/.config/nvim ];
# then git clone https://github.com/NvChad/NvChad ~/.config/nvim --depth 1
# ln -sf ~/code_server/config/nvim/lua/custom ~/.config/nvim/lua/custom
# fi
# Install astronvim
# printf -- '\033[33m Installing astronvim\n\033[37m'
# if [ ! -d ~/.config/nvim ];
# then git clone --depth 1 https://github.com/AstroNvim/AstroNvim ~/.config/nvim;
# ln -sf ~/code_server/config/nvim/lua/user ~/.config/nvim/lua/user
# fi
# Install platformio
printf -- '\033[33m Installing platformio\n\033[37m'
pip3 install platformio