Skip to content

Instantly share code, notes, and snippets.

@mariorcardoso
Last active August 30, 2023 15:02
Show Gist options
  • Save mariorcardoso/bd4fd72b1c3ff98b02e243002fb65842 to your computer and use it in GitHub Desktop.
Save mariorcardoso/bd4fd72b1c3ff98b02e243002fb65842 to your computer and use it in GitHub Desktop.
macOS fresh install setup
# Xcode Command-line Tools
xcode-select --install
# Productivity
brew install --cask rectangle
brew install notion
# Finder settings
# Show hidden files
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
# https://brew.sh/ https://github.com/Homebrew/brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# IDE and plugins
brew install --cask visual-studio-code
# Command line
brew tap homebrew/core
brew install iterm2
brew install zsh
brew install zsh-autosuggestions
brew install zsh-syntax-highlighting
brew install asdf
brew install fzf
brew install z
brew install romkatv/powerlevel10k/powerlevel10k
# Dev
brew install docker
brew install direnv
brew install firefox
brew install google-chrome
brew install zoom
brew install postman
brew install ngrok
brew install --cask appcleaner
# Ruby BE
brew install redis
brew install postgresql
brew install sqlite
# JS/TS FE
git config --global alias.co checkout
git config --global alias.br branch
git config --global alias.ci commit
git config --global alias.st status
############################ ~/.zshrc file ############################
############################ begin ############################
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /usr/local/opt/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias gco='git checkout '
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
. $(brew --prefix)/etc/profile.d/z.sh
. /usr/local/opt/asdf/asdf.sh
eval "$(direnv hook zsh)"
bindkey "^[[A" history-beginning-search-backward
bindkey "^[[B" history-beginning-search-forward
autoload -U compinit
compinit
export PATH="/usr/local/sbin:$PATH"
export HISTFILESIZE=1000000000
export HISTSIZE=1000000000
export HISTFILE=~/.zsh_history
setopt HIST_FIND_NO_DUPS
# following should be turned off, if sharing history via setopt SHARE_HISTORY
setopt INC_APPEND_HISTORY
############################ ~/.zshrc file ############################
############################ end ############################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment