Add nvm and dotnet to copy.sh --install
This commit is contained in:
parent
d1824a3ece
commit
01e599b4c0
18
copy.sh
18
copy.sh
|
@ -1,6 +1,5 @@
|
|||
#!/bin/bash
|
||||
|
||||
# Install required packages
|
||||
if [[ "$1" != "--install" ]]; then
|
||||
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
FAKE_HOME="$SCRIPT_DIR/fake_home"
|
||||
|
@ -24,6 +23,7 @@ if [[ "$1" != "--install" ]]; then
|
|||
|
||||
touch "$HOME/.zsh_local"
|
||||
else
|
||||
# Install required packages
|
||||
echo -n "Rust is "
|
||||
if ! command -v cargo; then
|
||||
echo "not installed. Installing..."
|
||||
|
@ -35,6 +35,22 @@ else
|
|||
if command -v cargo; then
|
||||
cargo install bat
|
||||
fi
|
||||
if ! command -v nvm; then
|
||||
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
nvm install 14
|
||||
nvm install 18
|
||||
nvm install node
|
||||
nvm use node
|
||||
fi
|
||||
if ! command -v dotnet; then
|
||||
wget https://dot.net/v1/dotnet-install.sh -O /tmp/dotnet-install.sh
|
||||
chmod +x /tmp/dotnet-install.sh
|
||||
/tmp/dotnet-install.sh --version latest
|
||||
rm /tmp/dotnet-install.sh
|
||||
fi
|
||||
curl -sS https://starship.rs/install.sh | sh
|
||||
echo "Starship requires an NFont: https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/FiraCode.zip"
|
||||
echo "You may wish to install fzf"
|
||||
|
|
Loading…
Reference in New Issue