Skip to content

Instantly share code, notes, and snippets.

@seanpianka
Last active August 13, 2019 18:07
Show Gist options
  • Save seanpianka/b60c7c0e6c03e0f5fbb4ac05ed8b7823 to your computer and use it in GitHub Desktop.
Save seanpianka/b60c7c0e6c03e0f5fbb4ac05ed8b7823 to your computer and use it in GitHub Desktop.
zsh configuration file (.zshrc)
export ZSH=$HOME/.oh-my-zsh
ZSH_THEME="af-magic"
plugins=(git)
source $ZSH/oh-my-zsh.sh
export TERM=xterm-256color
export EDITOR=vim
# Custom paths for scripts to ~/.bin
export PATH=$PATH:~/Development/Vindicta/drivers
# zsh: jump back/forward on CLI
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Miscellaneous
alias ls='ls -hG --color'
alias cls='clear;pwd;ls'
alias cll='clear;pwd;ls -l'
alias cla='clear;pwd;ls -la'
alias cl='clear;'
# command-line pastebin
alias tb="nc termbin.com 9999"
# screenshots using pysee
alias pysr="workon pysee; python $HOME/Development/PySee/pysee.py; deactivate"
alias pysf="workon pysee; python $HOME/Development/PySee/pysee.py --mode=full; deactivate"
if [[ "$OSTYPE" == "darwin"* ]]; then
# use vim74 installed by brew, ignore OS X default vim73
alias vim='/usr/local/bin/vim'
alias gcc='/usr/local/bin/gcc-7'
alias clang='/usr/bin/gcc'
export PATH="/usr/local/opt/coreutils/libexec/gnubin:/usr/local/opt/python/libexec/bin:/usr/local/bin:$PATH"
export PATH="/usr/local/opt/[email protected]/bin:$PATH"
export PATH="/usr/local/opt/[email protected]/sbin:$PATH"
export MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
export NODE_PATH=/usr/local/lib/node_modules
else
alias g="googler"
alias open="xdg-open"
alias startvpn="sudo openvpn --config /etc/openvpn/client/US_Florida.conf"
alias ccopy='xclip -selection c'
export SLACK_TOKEN=$(<$HOME/.slack_token)
export PATH="`ruby -e 'puts Gem.user_dir'`/bin:$PATH"
export STEAM_RUNTIME=1
export IDEA_JDK_64='/usr/lib/jvm/java-8-openjdk'
export IDEA_JDK='/usr/lib/jvm/java-8-openjdk'
fi
# Python's virtualenvwrapper
if [[ "$OSTYPE" == "darwin"* ]]; then
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python3
else # [[ "$OSTYPE" == "linux-gnu" ]]
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python
fi
export VIRTUALENVWRAPPER_PYTHON
export WORKON_HOME=$HOME/Development/.virtualenvs
export PROJECT_HOME=$HOME/Development
if [[ "$OSTYPE" == "darwin"* ]]; then
source /usr/local/bin/virtualenvwrapper.sh
else
source /usr/bin/virtualenvwrapper.sh
fi
# Need to have this at the bottom so it's not overwritten by any files sourced.
if [[ "$OSTYPE" == "darwin"* ]]; then export CLICOLOR=1; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment