dotfiles/.zshrc

67 lines
1.5 KiB
Bash
Raw Normal View History

2013-12-16 14:12:00 -05:00
# home bin directory
2013-04-29 01:04:32 -04:00
ZSH=$HOME/.oh-my-zsh
2013-12-16 14:12:00 -05:00
# custom directory to load .oh-my-zsh files from
ZSH_CUSTOM="$HOME/.zsh"
ZSH_THEME="atomaka" # gnzh, candy, crunch, geoffgarside, macovsky
2013-04-29 01:04:32 -04:00
2013-09-29 17:39:05 -04:00
PATH="$HOME/bin:$PATH"
2013-05-10 18:06:03 -04:00
if [[ "$OSTYPE" == darwin* ]]; then
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
2013-05-10 18:06:03 -04:00
fi
2013-12-16 14:12:00 -05:00
# add path to newer bins on cse servers (github/rmblair)
2013-09-18 21:08:28 -04:00
if test -d /soft/linux/pkg/bin ; then
export PATH=/soft/linux/pkg/bin:${PATH};
2013-09-18 21:26:57 -04:00
export PATH=/soft/lus/linux/vim/7.4-$(uname -m)/bin:$PATH;
2013-09-18 21:08:28 -04:00
fi
2014-09-05 00:23:33 -04:00
# clean up duplicate paths
typeset -U PATH
2013-04-29 01:10:47 -04:00
# List directory when changing (github/r00k)
chpwd() {
ls -lvh --color=auto
}
2013-04-29 01:12:02 -04:00
# Larger history
2013-08-05 22:07:01 -04:00
HISTSIZE=20000
2013-04-29 01:12:02 -04:00
HISTFILE=~/.zsh_history
2013-08-05 22:07:01 -04:00
SAVEHIST=20000
2013-04-29 01:12:02 -04:00
2013-04-29 13:32:51 -04:00
# Make sure C-s works in vim
stty start undef
stty stop undef
2013-04-29 01:04:32 -04:00
# 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)
2013-08-25 22:22:59 -04:00
plugins=(git rbenv)
2013-04-29 01:04:32 -04:00
source $ZSH/oh-my-zsh.sh
2013-04-29 13:32:51 -04:00
# Aliases/Functions files
2013-04-29 01:14:37 -04:00
source $HOME/.aliases
2013-04-29 13:32:51 -04:00
source $HOME/.functions
2013-04-29 01:14:37 -04:00
2013-05-28 23:32:51 -04:00
# Bind insert_sudo function
zle -N insert-sudo
bindkey "^z" insert-sudo
# make 256colors work maybe
if [ $TERM="xterm" ]; then
export TERM=xterm-256color
fi
2013-12-16 14:12:00 -05:00
# default editor is vim
2013-04-30 21:54:57 -04:00
export EDITOR='vim'
2013-12-16 14:12:00 -05:00
# init rbenv
if test -d "$HOME/.rbenv/bin" ; then
eval "$(rbenv init -)"
2013-08-22 01:35:40 -04:00
fi
2014-09-05 00:32:23 -04:00
export NVM_DIR="/Users/atomaka/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm