Skip to content

Instantly share code, notes, and snippets.

@claabs
Last active July 10, 2025 21:01
Show Gist options
  • Save claabs/3753f3397041a72364726ea3f32cf719 to your computer and use it in GitHub Desktop.
Save claabs/3753f3397041a72364726ea3f32cf719 to your computer and use it in GitHub Desktop.
Shell Configuration
# homebrew necessities
brew install --cask clocker linearmouse
brew install pyenv thefuck git
# Docker/colima
brew install colima docker docker-compose docker-buildx
mkdir -p ~/.docker/cli-plugins
ln -sfn $(brew --prefix)/opt/docker-compose/bin/docker-compose ~/.docker/cli-plugins/docker-compose
ln -sfn $(brew --prefix)/opt/docker-buildx/bin/docker-buildx ~/.docker/cli-plugins/docker-buildx
docker buildx install
# omz
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# nvm via https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script
# poetry via https://python-poetry.org/docs/#installing-with-the-official-installer
# .profile is preferred by headless shells like VS Code plugins. Set things here so VS Code shells can use them.
# For Husky, you may need to add `source ~/.profile` to ~/.config/husky/init.sh
# nvm
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="philips"
# nvm omz config
zstyle ':omz:plugins:nvm' lazy no
zstyle ':omz:plugins:nvm' autoload yes
# omz update config
zstyle ':omz:update' mode reminder
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git docker node npm nvm thefuck python)
source $ZSH/oh-my-zsh.sh
# Create nvm default path
ln -sf "$HOME/.nvm/versions/node/$(nvm version default)" $HOME/.nvm/versions/node/default
# Alias City
alias ds-store-destroy='find . -name '.DS_Store' -type f -delete'
alias docker-stop='docker ps -a --format '{{.ID}}' | xargs docker stop -t 1; docker rm $(docker ps -a -q)'
alias rc='exec zsh'
alias guid='uuidgen | tr "[:upper:]" "[:lower:]"'
alias reset-hard='git reset --hard @{u}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment