Last active
January 9, 2024 17:41
-
-
Save destinio/2adde7ae9687741544ab4400c1b34cda to your computer and use it in GitHub Desktop.
Mac set up script
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
# PATH | |
export PATH=$HOME/bin:/usr/local/bin:$HOME/.npm-global/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="$HOME/.oh-my-zsh" | |
export DENO_INSTALL="/Users/destin/.deno" | |
export PATH="$DENO_INSTALL/bin:$PATH" | |
export PHP_CS_FIXER_IGNORE_ENV=1 | |
ZSH_THEME="robbyrussell" | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS="true" | |
plugins=(git zsh-autosuggestions zsh-syntax-highlighting) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
export EDITOR='nvim' | |
alias ll="ls -al" | |
alias ..="cd .." | |
alias vim="nvim" | |
alias uu="npx uuid v4 | pbcopy" | |
alias ma="cd /Users/destin/Documents/MA" | |
alias wa="cd /Users/destin/Documents/WA" | |
alias gaa="git add ." | |
alias gcm="git commit -m" | |
alias gpoh="git push origin head" | |
alias gco="git checkout" | |
alias cl="clear" | |
alias tsconfig="curl https://gist.githubusercontent.com/destinio/9a4694a34957fb70b2617d3442ebbfb5/raw/3200fe7a33c315c2645d63ae5c7db44e7852b7d6/tsconfig.json >> tsconfig.json" | |
alias tree="tree -I node_modules" | |
alias art="docker-compose exec php php artisan" | |
alias dunit="docker-compose exec php ./vendor/bin/phpunit --filter=" | |
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 | |
function gi() { curl -sLw "\n" https://www.toptal.com/developers/gitignore/api/$@ ;} | |
alias gigo="gi go,macos >> .gitignore" | |
alias ginode="gi node,macos >> .gitignore" |
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
#!/usr/bin/env bash | |
#switch to zsh | |
chsh -s `which zsh` | |
# install oh-my-zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
# install brew | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
# install mac apps | |
brew install n | |
brew install gh | |
brew install yarn | |
brew install tldr | |
brew install diff-so-fancy | |
brew install --cask slack | |
brew install --cask hyper | |
brew install --cask google-chrome | |
brew install --cask visual-studio-code | |
brew install --cask spotify | |
brew install --cask alfred | |
brew install --cask raycast | |
brew install --cask command-tab-plus | |
brew install --cask discord | |
brew install --cask visual-studio-code | |
brew install --cask firefox | |
brew install --cask numi | |
echo "DONE WITH BREW" | |
echo "Installing Node LTS" | |
n 14 | |
n lts | |
# https://github.com/destinio/destin-vscode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment