Skip to content

Instantly share code, notes, and snippets.

@Melonangie
Last active January 18, 2026 18:34
Show Gist options
  • Select an option

  • Save Melonangie/5a8bf03f890d1b94e30b10f14e3aaeac to your computer and use it in GitHub Desktop.

Select an option

Save Melonangie/5a8bf03f890d1b94e30b10f14e3aaeac to your computer and use it in GitHub Desktop.
Setup OSX

Pre-Install

defaults write com.apple.finder AppleShowAllFiles true
killall Finder

Install

ohmyzsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
curl  --create-dirs -O --output-dir ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes https://gist.githubusercontent.com/Melonangie/587d02f5c475848d94284ae9ea6f8818/raw/7744e7aef89a415f39ddc700cfe8fd0b55491b64/daivasmara-nenas.zsh-theme
sed -if 's/robbyrussell/jonathan/g' ~/.zshrc
source ~/.zshrc

homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo >> ~/.zprofile
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
curl -O https://gist.githubusercontent.com/Melonangie/6e5a6e1cbbc7279520d95d4f20ed5957/raw/f247947fc6d5174d812d561097409268ced01eef/.ignore
brew install zsh-autosuggestions zsh-syntax-highlighting zsh-completions zsh-history-substring-search the_silver_searcher ccat scmpuff diff-so-fancy
  • configure .zshrc and source ~/.zshrc
plugins=(
git
conda-env
colored-man-pages
command-not-found
zsh-autosuggestions)
...
ZSH_AUTOSUGGEST_STRATEGY=(history completion)

alias cat="ccat --bg=dark "
alias ag='ag --path-to-ignore ~/.ignore'
alias grep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
alias hgrep="fc -El 0 | grep"
alias h='history'
alias l='ls -lFh'
alias ll='ls -lAFh'
alias ff='find . -type f -name'

source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/homebrew/share/zsh-history-substring-search/zsh-history-substring-search.zsh

  if type brew &>/dev/null; then
    FPATH=$(brew --prefix)/share/zsh-completions:$FPATH

    autoload -Uz compinit
    compinit
  fi

Preview .ipynb

brew install --cask jupyter-notebook-viewer

SSH keys

ssh-keygen -t ed25519 -C "maria.rabelero@gmail.com"
ssh-keygen -t rsa -b 4096 -C "maria.rabelero@gmail.com"
eval "$(ssh-agent -s)"
touch ~/.ssh/config
Host github.com
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_ed25519
ssh-add ~/.ssh/id_ed25519
ssh-add ~/.ssh/id_rsa
pbcopy < ~/.ssh/id_ed25519.pub
cat ~/.ssh/id_rsa.pub

Conda

brew install --cask miniconda
wget -P ~/ https://gist.githubusercontent.com/Melonangie/d88151b8739bcee4bc06240cfc34df9f/raw/05670c847ccae1d21df96c5e8be16cf5be195723/smalld.yml
conda env create -f smalld.yml
conda activate smalld
pip list
jupyter lab
echo 'conda activate smalld' >> ~/.zshrc

DDEV

brew install orbstack docker
brew install ddev/ddev/ddev
mkcert -install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment