Skip to content

Instantly share code, notes, and snippets.

@Melonangie
Last active March 22, 2026 18:28
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
defaults write com.apple.finder QLEnableTextSelection -bool TRUE; killall Finder

Installs

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)"
brew install zsh-autosuggestions /
            zsh-syntax-highlighting /
            zsh-completions /
            zsh-history-substring-search /
            the_silver_searcher /
            ccat /
            scmpuff /
            diff-so-fancy /
            thefuck /
            powerlevel10k
  • Update .zshrc
plugins=(
git
alias-finder 
colored-man-pages
command-not-found
fancy-ctrl-z
thefuck
virtualenv
)

...

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'

eval "$(scmpuff init -s)"
eval $(thefuck --alias)

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
  • Source source ~/.zshrc; rm -f ~/.zcompdump; compinit
  • Run source ~/.p10k.zsh Update prompt

Dot files

wget -P ~/ https://gist.githubusercontent.com/Melonangie/6e5a6e1cbbc7279520d95d4f20ed5957/raw/f247947fc6d5174d812d561097409268ced01eef/.ignore 
wget -P ~/ https://gist.githubusercontent.com/Melonangie/6e5a6e1cbbc7279520d95d4f20ed5957/raw/f247947fc6d5174d812d561097409268ced01eef/.ignore -O .gitignore
wget -P ~/ https://gist.githubusercontent.com/Melonangie/803a3867a67f9dadd637b343a3ea8d54/raw/3f4af12c89220dcd08066d3365eadc97946902fa/.gitconfig

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

Preview .ipynb

iPreview

  • Install iPreview from app store

nbviewer

  • Install nbviewer #brew install --cask jupyter-notebook-viewer
  • Manually start /Applications/Jupyter Notebook Viewer.app using command + open to allow a third-party app to be started) #qlmanage -r

Editors

Sublime Text

brew install --cask sublime-text

Codium

brew install --cask vscodium

DDEV

brew install orbstack docker
brew install ddev/ddev/ddev
mkcert -install

Drupal Sniffer

https://gist.github.com/Melonangie/d87b50a811b4c5775f304e58d7c2e311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment