Last active
January 10, 2022 15:52
-
-
Save SixFiveSoftware/dec000e09da92a01405333ca6ec3e688 to your computer and use it in GitHub Desktop.
Zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Gem home for ruby gem installation to not need sudo to system path | |
export GEM_HOME="$HOME/.gems" | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/bjmiller/.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="tonotdo" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in $ZSH/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to automatically update without prompting. | |
# DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS="true" | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work) | |
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765 | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git xcode) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
eval "$(/opt/homebrew/bin/brew shellenv)" | |
########## | |
## aliases | |
########## | |
# unix-y aliases | |
alias l='ls -lah' | |
alias reload='exec -l $SHELL' | |
alias cppmake='./autogen.sh && ./configure && make' | |
alias uuid="uuidgen | tr '[:upper:]' '[:lower:]' | pbcopy && pbpaste && echo" | |
alias h='history | grep' | |
# git aliases | |
alias gpot='git push origin --tags' | |
alias grsoft='git reset --soft HEAD~1' | |
alias gunstage='git restore --staged .' | |
alias grbd='git rebase develop' | |
alias gmnoff='git merge --no-ff' | |
alias gbvv='git branch -vv' | |
alias releasenotes='git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%h %s"' | |
alias gclr='git clone --recursive' | |
alias glh='git lg | head -n 20' | |
alias gpatch='git format-patch -1' | |
# xcode aliases | |
alias oxcdd='open ~/Library/Developer/Xcode/DerivedData' | |
alias cdxcdd='cd ~/Library/Developer/Xcode/DerivedData' | |
alias pxc='p && xc' | |
# alias xcodesign='sudo codesign -f -s XcodeSigner /Applications/Xcode.app' | |
# alias localize_en='find . -name "*.swift" -print0 | xargs -0 genstrings -o Spot/LocalizedStrings/en.lproj' | |
# alias localize_fr='find . -name "*.swift" -print0 | xargs -0 genstrings -o Spot/LocalizedStrings/fr.lproj' | |
# alias localize='localize_en && localize_fr' | |
# yarn aliases | |
alias yi='yarn install' | |
alias yb='yarn build' | |
alias ys='yarn start' | |
alias yt='yarn test' | |
alias yis='yarn install && yarn start' | |
alias yd='yarn dev' | |
alias yco='yarn cypress:open' | |
# docker aliases | |
alias dcuba='docker-compose up --build api' | |
# brew aliases | |
# alias beer='brew update; brew upgrade; brew cleanup; brew upgrade --cask; gem update' | |
alias beer='brew update; brew upgrade; brew cleanup; brew upgrade --cask' | |
# ruby aliases | |
alias irb='irb -I' | |
# bundler aliases | |
alias be='bundle exec' | |
alias bi='bundle install --jobs 4' | |
alias bu='bundle update' | |
# cocoapods aliases | |
alias bpod='bundle exec pod install' | |
alias intelffigem='sudo arch -x86_64 gem install ffi' | |
# alias p='arch -x86_64 pod install' # used with brew-installed cocoapods, and M1 processor | |
alias p='arch -x86_64 bundle exec pod install' # used with gem-installed cocoapods, and M1 processor | |
alias pu='arch -x86_64 pod update' # used with brew-installed cocoapods, and M1 processor | |
alias gemfix='gem pristine --all' # used when ruby gems get fucked up after updating ruby and bundler | |
# fastlane aliases | |
alias ft='bundle exec fastlane test' | |
# alias flt='bundle exec fastlane local_test' | |
# alias fqt='bundle exec fastlane quick_test' | |
alias f='bundle exec fastlane' | |
# swiftlint aliases | |
alias slc='Pods/SwiftLint/swiftlint autocorrect --format' | |
alias sll='Pods/SwiftLint/swiftlint lint' | |
alias slver='Pods/SwiftLint/swiftlint version' | |
# Go aliases | |
# alias gomo='gomobile bind -target ios -v -prefix CNB -o lib/Cnlib.framework .' | |
# Go | |
export GOPATH="$HOME/go" | |
export GOROOT="/opt/homebrew/bin/go" | |
# ZSH Syntax Highlighting | |
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
## PATH | |
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Applications/Server.app/Contents/ServerRoot/usr/bin:/Applications/Server.app/Contents/ServerRoot/usr/sbin" | |
# export PATH="$HOME/.fastlane/bin:$PATH" | |
# export PATH="$HOME/.rbenv/shims:$PATH" | |
export PATH="$PATH:$GOPATH/bin:/usr/local/go/bin" | |
export PATH="$PATH:/usr/local/bin/go/bin" | |
export PATH="$PATH:/opt/homebrew/bin:/opt/homebrew/opt" | |
export CGO_CPPFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined" | |
export ZSH_DISABLE_COMPFIX=true | |
# vim key bindings in zsh | |
bindkey -v | |
export KEYTIMEOUT=1 | |
# gpg | |
# alias killgpg="gpgconf --kill gpg-agent && gpg-connect-agent /bye" | |
# Fastlane locale settings | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
[ -f /opt/homebrew/etc/profile.d/autojump.sh ] && . /opt/homebrew/etc/profile.d/autojump.sh | |
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh" | |
# ruby shiz | |
eval "$(rbenv init - zsh)" | |
PATH="/opt/homebrew/opt/[email protected]/bin:$PATH" | |
# python env stuff for flask | |
export FLASK_APP=application.py | |
export FLASK_ENV=development | |
# nvm via homebrew | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh" # This loads nvm | |
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion | |
# ssh-agent stuff | |
eval "$(ssh-agent -s)" | |
eval "$(ssh-agent -k)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment