Skip to content

Instantly share code, notes, and snippets.

@bradwindy
Last active July 7, 2021 10:37
Show Gist options
  • Save bradwindy/348ef1f25bbd4e44c4c20ec9cb570234 to your computer and use it in GitHub Desktop.
Save bradwindy/348ef1f25bbd4e44c4c20ec9cb570234 to your computer and use it in GitHub Desktop.
My .zshrc file
# Oh my zsh stuff
export ZSH="/Users/bradleywindybank/.oh-my-zsh"
# THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="bureau"
# More ZSH stuff
ZSH_DISABLE_COMPFIX=true
. /usr/local/etc/profile.d/z.sh
plugins=(
git
z
thefuck
bgnotify
zsh-autosuggestions
zsh-syntax-highlighting
)
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/Users/bradleywindybank/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# PATH
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
export PATH=$PATH:~/bin
export PATH=$PATH:/Users/bradleywindybank/Library/Android/sdk/ndk/23.0.7196353
export PATH
# Editor
export EDITOR='subl -w'
# ALIASES
alias upd="brew update && brew upgrade && brew autoremove && brew cleanup"
alias edit="subl ~/.zshrc"
alias src="source ~/.zshrc"
alias writeauth="sudo sed -i '1s/^/auth sufficient pam_tid.so /' /etc/pam.d/sudo"
alias condupd="conda update -n base conda && conda update --all"
alias o="open ."
# FUNCTIONS
function fo() { z "$@" && o; }
# Update tools with GNU equivalents
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/ed/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/ed/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/findutils/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/findutils/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/gawk/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/gawk/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/gnu-tar/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/grep/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/grep/libexec/gnubin:${PATH}"
export MANPATH="/usr/local/opt/make/libexec/gnuman:${MANPATH}"
export PATH="/usr/local/opt/make/libexec/gnubin:${PATH}"
source $ZSH/oh-my-zsh.sh
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/bradleywindybank/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/bradleywindybank/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/bradleywindybank/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/bradleywindybank/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment