Skip to content

Instantly share code, notes, and snippets.

@andriilive
Last active April 14, 2024 20:57
Show Gist options
  • Save andriilive/afe5221e771480d4238a32fd14dc959e to your computer and use it in GitHub Desktop.
Save andriilive/afe5221e771480d4238a32fd14dc959e to your computer and use it in GitHub Desktop.
NVM

Homebrew

Install brew

# Create iCloud folder alias in user home
cd ~ && ln -s "$HOME/Library/Mobile Documents/com~apple~CloudDocs" iCloud

# Brew install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Symlink the BrewFile 
ln -s ~/iCloud/dotenv/Brewfile ~/

# set the Transmit settings folder paths
TR_ICLOUD_SETTINGS_FOLDER="$HOME/iCloud/Transmit"
TP_SETTINGS_FOLDER="$HOME/Library/Application Support/Transmit"

# backup Transmit 5 settings folder and move to iCloud
# mv "$TP_SETTINGS_FOLDER" "$TR_ICLOUD_SETTINGS_FOLDER"

# create symlink from iCloud Transmit folder to the original location
ln -s "$TR_ICLOUD_SETTINGS_FOLDER" "$TP_SETTINGS_FOLDER"

# Install from ~/Brewfile and restart the services
brew bundle install
brew services restart

# Link the ssh keys
ln -s ~/iCloud/dotenv/ssh ~/.ssh

# Link the .env
cd ~
ln -s ~/iCloud/dotenv/.env
ln -s ~/iCloud/dotenv/.npmrc

ln -s ~/iCloud/dotenv/.zprofile
ln -s ~/iCloud/dotenv/.bash_profile
ln -s ~/iCloud/dotenv/.profile

ln -s ~/iCloud/dotenv/.zshrc
ln -s ~/iCloud/dotenv/.bashrc

ln -s ~/iCloud/dotenv/.gitconfig_intel .gitconfig
ln -s ~/iCloud/dotenv/.gitignore

# Copilot creds
cd ~/.config/github-copilot
ln -s ~/iCloud/dotenv/config/github-copilot/hosts.json

# GH CLI creds
cd ~/.config/gh
ln -s ~/iCloud/dotenv/config/gh/hosts.yml
ln -s ~/iCloud/dotenv/config/gh/config.yml

# Micro
cd ~/.config/micro
ln -s ~/iCloud/dotenv/config/micro/bindings.json
ln -s ~/iCloud/dotenv/config/micro/settings.json

# Bat
cd ~/.config
ln -s ~/iCloud/dotenv/config/bat

# Composer
mkdir ~/.composer
cd ~/.composer
ln -s ~/iCloud/dotenv/composer/config.json

# WP-CLI
mkdir ~/.wp-cli
cd ~/.wp-cli
ln -s ~/iCloud/dotenv/wp-cli/config.yml

NVM Setup

nvm install node --lts
nvm install 18
nvm install 20
nvm install 14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment