Created
August 31, 2016 17:05
-
-
Save goldsborough/b32baff753bb8d82c94d72d41a0b3077 to your computer and use it in GitHub Desktop.
My ZSH config
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
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/goldsborough/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
ZSH_THEME="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 change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# 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. | |
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. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# 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? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(powerline-fonts powerline git colored-man colorize github pip python brew osx zsh-syntax-highlighting) | |
# Basic configuration | |
export PATH="/Library/Haskell:/usr/local/opt/coreutils/libexec/gnubin:/usr/local/Cellar/qt5/5.4.0/bin:/usr/texbin:/usr/local/bin:/usr/local/bin:/usr/local/heroku/bin:/Library/Frameworks/Python.framework/Versions/3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/CrossPack-AVR/bin:/usr/texbin:/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin:/Applications/Eclipse.app/Contents/Eclipse:/Library/TeX/Distributions/.DefaultTeX/Contents/Programs/texbin" | |
source $ZSH/oh-my-zsh.sh | |
export LANG=en_US.UTF-8 | |
# Utility Functions | |
junk() { mv $1 ~/.Trash; } | |
venv() { | |
name=${1:-env} | |
if [ ! -d $name ]; then | |
echo Creating virtualenv $name ... | |
virtualenv $name | |
fi | |
source $name/bin/activate | |
} | |
asm () { | |
if [ $# -eq 1 ]; then | |
echo Compiling ... | |
nasm -f macho64 -o $1.o $1.asm | |
echo Linking ... | |
ld $1.o -o $1 | |
echo Cleaning ... | |
rm -f *.o | |
else | |
echo "No file supplied!" | |
fi | |
} | |
latex_clean () { | |
rm -rf *.aux | |
rm -rf *.log | |
rm -rf *.fdb_latexmk | |
rm -r *.fls | |
} | |
function gi() { curl -L -s https://www.gitignore.io/api/$@ ;} | |
# Application Variables | |
HOMEBREW_GITHUB_API_TOKEN=0199c116ff623c3bc0373c6b39d2e9f38153eaec | |
JUNIT_HOME=~/Documents/Java | |
CLASSPATH=:/Users/goldsborough/Documents/Java/junit-4.12.jar:hamcrest-core-1.3.jar:. | |
GITHUB_TOKEN=ea85bfdebe92ea6ac62266aa01a6ecad1d8121f6 | |
PGDATA="/usr/local/var/postgres" | |
# z completion | |
. ~/z.sh | |
# For zsh themes | |
export DEFAULT_USER=goldsborough | |
# Application Shortcuts | |
alias a='atom' | |
alias e='emacs' | |
alias py='python3' | |
alias py2='python' | |
# Path Shortcuts | |
alias home="cd ~/Documents" | |
alias uni="cd ~/Documents/University/courses" | |
# Other Shortcuts | |
alias l='ls' | |
alias config="emacs ~/.zshrc" | |
alias load_config="source ~/.zshrc" | |
# Theme | |
RPROMPT='%*' # RPROMPT='%F{red}%*%f' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment