Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9d00bb0c11
Fetching contributors…

Cannot retrieve contributors at this time

file 49 lines (39 sloc) 0.959 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
# Path to your oh-my-zsh configuration.
export ZSH=$HOME/.oh-my-zsh
export ZSH_THEME="kphoen"
export CASE_SENSITIVE="true"

plugins=(git lein)
if [ `uname` = "Darwin" ]; then
   plugins+=(brew osx)
fi

if [ `uname` = "Linux" ]; then
   plugins+=(archlinux)
fi

source $ZSH/oh-my-zsh.sh

# Aliasen and environment
source ~/.zshalias
source ~/.zshenv

# Check for a .venv file. If it's there, activate it.
has_virtualenv() {
  if [ -e .venv ] && [ -z "$VIRTUAL_ENV" ]; then
    workon "$@" `cat .venv`
  fi
}
venv_cd () {
  cd "$@" && has_virtualenv
}
alias cd="venv_cd"

# Bindings for Emacs
bindkey -e

# Don't use autocorrect
unsetopt correct_all

# Completions
fpath=(path/to/zsh-completions/src $fpath)

# Evaluate keychan
if [ `uname` = "Darwin" ]; then
   eval `keychain --eval --agents ssh --inherit any id_rsa`
else
   eval `keychain --eval --agents ssh id_rsa`
fi

# CTRL-R for backwards history search
bindkey "^r" history-incremental-search-backward
Something went wrong with that request. Please try again.