Skip to content

Instantly share code, notes, and snippets.

@zrtsky
Last active May 26, 2024 01:01
Show Gist options
  • Save zrtsky/a65047d1875cc89a740194ad6727f001 to your computer and use it in GitHub Desktop.
Save zrtsky/a65047d1875cc89a740194ad6727f001 to your computer and use it in GitHub Desktop.
# Q pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
# 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 you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
export PATH=$PATH:/Users/pavelzaritsky/flutter/bin
export MODULAR_HOME="$HOME/.modular"
export PATH="$MODULAR_HOME/pkg/packages.modular.com_mojo/bin:$PATH"
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git zsh-syntax-highlighting web-search copybuffer history)
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /Users/pavelzaritsky/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# User configuration
source $ZSH/oh-my-zsh.sh
# Cocapods
export LANG=en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LC_ALL=en_US.UTF-8
# nvm
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
# bun completions
[ -s "/opt/homebrew/Cellar/bun/0.8.1/share/zsh/site-functions/_bun" ] && source "/opt/homebrew/Cellar/bun/0.8.1/share/zsh/site-functions/_bun"
# Go
eval "$(goenv init -)"
PATH=~/.console-ninja/.bin:$PATH
# starship
eval "$(starship init zsh)"
# Aliases
alias brewup='brew update; brew upgrade; brew cleanup;'
alias pod='arch -x86_64 pod'
alias exa-tree='exa --tree --level=2'
alias wolt='system_profiler SPPowerDataType | grep "Wattage"'
alias ws='open -a /Applications/WebStorm.app'
alias pip='python -m pip'
alias camelot-be='cd /Users/pavelzaritsky/Documents/repos/camelot/camelot-backend && sudo python -m server.main'
alias camelot-envoy='cd /Users/pavelzaritsky/Documents/repos/camelot/camelot-backend && envoy -c envoy.yaml'
alias camelot-file-service='cd /Users/pavelzaritsky/Documents/repos/camelot/camelot-backend && python -m citadel.servers.files.server'
alias camelot-all='cd /Users/pavelzaritsky/Documents/repos/camelot/camelot-backend && concurrently -n "be,envoy,file-server" -c "blue,green,red" "sudo python -m server.main" "envoy -c envoy.yaml" "python -m citadel.servers.files.server"'
# PREFIX= nvm use --delete-prefix stable
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv init --path)"
# Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment