Skip to content

Instantly share code, notes, and snippets.

@BretFisher BretFisher/.zshrc
Created Jul 4, 2018

Embed
What would you like to do?
my custom oh-my-zsh setup
# this assumes your using oh-my-zsh for maximum zsh-ness
# info and defaults are here:
# https://github.com/robbyrussell/oh-my-zsh/blob/master/templates/zshrc.zsh-template
export LC_ALL="en_US.UTF-8"
export ZSH=/Users/bret/.oh-my-zsh
# custom prompt theme
ZSH_THEME="present" # mine is present, default is robbyrussell, also agnoster, fishy, ys, wild-cherry
COMPLETION_WAITING_DOTS="true"
# custom location for my omz tweaks
ZSH_CUSTOM=/Users/bret/dotfiles/oh-my-zsh/custom
# enable plugins. I don't enable docker ones because I plug in docker completion from Docker Destkop directly
plugins=(osx colored-man-pages droplr colorize mosh tmux golang emoji zsh-syntax-highlighting vi-mode)
export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin:$HOME/code/scripts
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/opt/go/libexec/bin:$GOPATH/bin
# If you have installed completions using Homebrew,
# its completions may not be on your $FPATH if you are using the system zsh.
# Homebrew installs zsh completion definitions to /usr/local/share/zsh/site-functions,
# which will be on $FPATH for the Homebrew-installed zsh, but not for the system zsh.
# If you want it to work with the system zsh,
# add this to your ~/.zshrc before it sources oh-my-zsh.sh.
# if (( ! ${fpath[(I)/usr/local/share/zsh/site-functions]} )); then
# FPATH=/usr/local/share/zsh/site-functions:$FPATH
# fi
if (( ! ${fpath[(I)/usr/local/share/zsh-completions]} )); then
FPATH=/usr/local/share/zsh-completions:$FPATH
fi
# for friendly gpg, set tty
GPG_TTY=$(tty)
export GPG_TTY
########
# start up OMZ
source $ZSH/oh-my-zsh.sh
########
# start up iTerm macOS integration
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# prevent sharing shell history between different windows (enabled by default in OMZ)
unsetopt share_history
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.