Last active
November 15, 2022 19:32
-
-
Save WillSams/16fa5e59d34f288384875565d78f5f58 to your computer and use it in GitHub Desktop.
Fullstack Macbook Setup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# March 11th, 2022 will be a day of infamy.... | |
echo '# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi' >| ~/.bash_profile | |
echo 'set -o noclobber | |
PS1="\[\e]0;[email protected] \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\][email protected]\[\033[00m\] \[\033[01;34m\]\w \$\[\033[00m\]" | |
' >> ~/.bashrc | |
source ~/.bashrc | |
# !IMPORTANT! - Note: I'm using /bin/bash instead of /bin/zsh. | |
chsh -s /bin/bash | |
echo ' | |
export BASH_SILENCE_DEPRECATION_WARNING=1 | |
' >> ~/.bashrc | |
# Install Brew | |
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bashrc | |
echo ' | |
export PATH="$HOME/.local/bin:$PATH"' >> ~.bashrc | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
source ~/.bashrc | |
# Install packages ########################################################################## | |
# This will keep the headaches from happening... | |
sudo bash -c "ln -s $(which python3) /usr/local/bin/python" | |
# Docker | |
# https://www.docker.com/products/docker-desktop | |
# Once installed, ensure experimental v2 featurs are turned off and restart if necessary | |
# For now, stick with docker-compose 1.9. To verify, execute `docker-compose --version` | |
# Alternative is to use Podman (https://edofic.com/posts/2021-09-12-podman-m1-amd64/): | |
brew install simnalamburt/x/podman-apple-silicon | |
podman machine init --cpus=5 --disk-size=60 --memory 8192 | |
# Direnv | |
brew install direnv | |
echo 'eval "$(direnv hook bash)"' >> ~/.bashrc | |
source ~/.bashrc | |
# NVM | |
brew install nvm | |
export NVM_DIR="/opt/homebrew/opt/nvm" | |
echo 'export NVM_DIR="/opt/homebrew/opt/nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/etc/bash_completion.d/nvm" ] && \. "$NVM_DIR/etc/bash_completion.d/nvm"' >> ~/.bashrc | |
source ~/.bashrc | |
nvm install lts/* | |
npm install -g yarn knex aws-sdk serverless jest | |
# AWS CLI | |
brew install awscli | |
echo "[default] | |
aws_access_key_id = xxxx | |
aws_secret_access_key = xxxx | |
[localhost-user] | |
aws_access_key_id = xxxx | |
aws_secret_access_key = xxxx" >> ~/.aws/credentials | |
# Helpful packages | |
brew install gimp vim pstree postgresql brave-browser warrensbox/tap/tfswitch pipenv | |
brew install ctop htop jq tree wget postman robo-3t mysql insomnia | |
brew install --cask term2 tunnelblick dbeaver-community mysqlworkbench | |
pipenv --python /opt/homebrew/bin/python3 # just to be sure... | |
# VS Code | |
brew install --cask visual-studio-code | |
echo 'export PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin:$PATH"' >> ~/.bashrc | |
source ~/.bashrc | |
# CookieCutter tool | |
python3 -m pip install cookiecutter | |
echo '" | |
PATH=$HOME/.local/bin:$PATH"' >> ~/.bashrc | |
source ~/.bashrc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment