dotfiles/zshrc

92 lines
2.6 KiB
Bash
Raw Normal View History

2014-11-28 16:10:37 +00:00
platform='uname'
2012-11-05 03:36:12 +00:00
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.zsh
setopt promptsubst
autoload -U promptinit
promptinit
prompt grb
autoload -U compinit
compinit
2013-07-07 21:25:47 +00:00
# Never know when you're gonna need to popd!
setopt AUTO_PUSHD
2012-11-05 03:36:12 +00:00
2013-07-07 21:25:47 +00:00
# Allow completing of the remainder of a command
bindkey "^N" insert-last-word
2012-11-05 03:36:12 +00:00
2013-07-07 21:25:47 +00:00
# Show contents of directory after cd-ing into it
chpwd() {
if [[ $platform == 'Linux' ]]; then
ls -lrthG --color
elif [[ $platform == 'Darwin' ]]; then
2014-12-03 19:49:47 +00:00
ls -lG
fi
2013-07-07 21:25:47 +00:00
}
2012-11-05 03:36:12 +00:00
# Unbreak broken, non-colored terminal
2013-03-20 16:50:02 +00:00
export TERM=xterm-256color
2013-07-07 21:30:11 +00:00
# Use vim as the editor
export EDITOR=vi
2013-07-07 21:25:47 +00:00
# Grep tweaks
2014-09-30 00:51:23 +00:00
export GREP_OPTIONS="-nRi --color --exclude-dir=.git --exclude-dir=tmp --exclude-dir=log --exclude-dir=node_modules --exclude-dir=bower_components --exclude-dir=coverage --exclude-dir=.bundle --exclude=*.csv --exclude=*.pdf --exclude-dir=vendor --exclude-dir=rdoc --exclude-dir=personal" # --exclude-dir=images --exclude-dir=coverage
2013-07-07 21:25:47 +00:00
# Save a ton of history
export HISTSIZE=20000
2012-11-05 03:36:12 +00:00
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
2013-07-07 21:25:47 +00:00
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
2013-07-07 21:30:11 +00:00
# Load all of the config files in ~/.zsh that end in .zsh
2013-08-22 20:19:18 +00:00
source $ZSH/lib/*.zsh
2013-07-07 21:30:11 +00:00
2013-07-07 21:25:47 +00:00
# Source my custom files after oh-my-zsh so I can override things.
source $HOME/.dotfiles/zsh/aliases
source $HOME/.dotfiles/zsh/functions
# Customize to your needs...
export PATH=/usr/local/sbin:/usr/local/bin:${PATH}
PATH=$PATH:$HOME/bin
2013-02-03 21:42:04 +00:00
# Start rbenv
2014-02-17 07:00:21 +00:00
export RBENV_PATH="$HOME/.rbenv"
export PATH="$RBENV_PATH/bin:$PATH"
eval "$(rbenv init -)"
2014-03-07 20:00:19 +00:00
export RUBY_HEAP_MIN_SLOTS=1000000 # for < 2.1.1, will raise warning when using 2.1.1
export RUBY_GC_HEAP_INIT_SLOTS=1000000 # for 2.1.1
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000
2014-01-25 04:04:23 +00:00
# Setup Ansible
2014-05-17 19:31:36 +00:00
ANSIBLE_DIR=/Users/pulsar/Code/open-source/python/ansible
export PATH=${ANSIBLE_DIR}/bin:${PATH}
export PYTHONPATH=${ANSIBLE_DIR}/lib:${PYTHONPATH}
export ANSIBLE_LIBRARY=${ANSIBLE_DIR}/library
export MANPATH=${ANSIBLE_DIR}/docs/man:${MANPATH}
2014-01-25 04:04:23 +00:00
export ANSIBLE_HOSTS=~/.ansible_hosts
2014-02-17 07:00:21 +00:00
# Setup Dart
export PATH=/Applications/Dart/dart-sdk/bin:${PATH}