Update
This commit is contained in:
parent
45194602b8
commit
9bf3bf0d3d
32
setup.sh
32
setup.sh
@ -215,17 +215,41 @@ echo -e "${BLUE} LOG:${YELLOW} Stowing dotfiles...${NC}"
|
|||||||
cd "$DOTFILES_DIR"
|
cd "$DOTFILES_DIR"
|
||||||
stow . --target="$HOME" --ignore="setup.sh" --ignore=".git" --ignore=".gitignore" --ignore="README.md" --ignore=".zsh_secrets" --ignore=".zsh_secrets.example" --ignore="LICENSE" --ignore="Makefile" --ignore="provision.sh"
|
stow . --target="$HOME" --ignore="setup.sh" --ignore=".git" --ignore=".gitignore" --ignore="README.md" --ignore=".zsh_secrets" --ignore=".zsh_secrets.example" --ignore="LICENSE" --ignore="Makefile" --ignore="provision.sh"
|
||||||
|
|
||||||
# Language Installation
|
# Language Setup
|
||||||
echo -e "${BLUE} LOG:${YELLOW} Installing languages and tools...${NC}"
|
echo -e "${BLUE} LOG:${YELLOW} Finalizing Language Setup...${NC}"
|
||||||
|
|
||||||
gvm install go1.25.5
|
# 1. Setup Node (NVM)
|
||||||
gvm use go1.25.5 --default
|
export NVM_DIR="$HOME/.nvm"
|
||||||
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||||
|
|
||||||
|
if command -v nvm &> /dev/null; then
|
||||||
|
echo -e "${BLUE} LOG:${YELLOW} Installing Node LTS...${NC}"
|
||||||
nvm install --lts
|
nvm install --lts
|
||||||
nvm use --lts
|
nvm use --lts
|
||||||
|
echo -e "${BLUE} LOG:${YELLOW} Installing Global Tools (pnpm, yarn)...${NC}"
|
||||||
|
npm install -g pnpm yarn
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 2. Setup Go (GVM)
|
||||||
|
[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm" # Force load GVM
|
||||||
|
|
||||||
|
if command -v gvm &> /dev/null; then
|
||||||
|
TARGET_GO="go1.24.11"
|
||||||
|
if [[ $(gvm list) != *"$TARGET_GO"* ]]; then
|
||||||
|
echo -e "${BLUE} LOG:${YELLOW} Installing Go ($TARGET_GO)...${NC}"
|
||||||
|
gvm install $TARGET_GO
|
||||||
|
gvm use $TARGET_GO --default
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
# 3. Setup Rust
|
||||||
|
[ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env"
|
||||||
|
|
||||||
|
if command -v rustup &> /dev/null; then
|
||||||
|
echo -e "${BLUE} LOG:${YELLOW} Updating Rust to stable...${NC}"
|
||||||
rustup default stable
|
rustup default stable
|
||||||
rustup update
|
rustup update
|
||||||
|
fi
|
||||||
|
|
||||||
# Finish
|
# Finish
|
||||||
echo -e "${GREEN} LOG: Setup Complete! Please restart your terminal to apply all changes.${NC}"
|
echo -e "${GREEN} LOG: Setup Complete! Please restart your terminal to apply all changes.${NC}"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user