Created
July 4, 2018 20:52
-
-
Save BretFisher/aceac39d279c0e757cfe4c7759fc923d to your computer and use it in GitHub Desktop.
my custom oh-my-zsh setup
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
# 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
Neat! I didn't know iTerm2 provided scripts for integration with zsh.