71 lines
1.6 KiB
Bash
71 lines
1.6 KiB
Bash
# home bin directory
|
|
ZSH=$HOME/.oh-my-zsh
|
|
# custom directory to load .oh-my-zsh files from
|
|
ZSH_CUSTOM="$HOME/.zsh"
|
|
ZSH_THEME="atomaka" # gnzh, candy, crunch, geoffgarside, macovsky
|
|
|
|
PATH="$HOME/bin:$PATH"
|
|
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
PATH="/opt/boxen/homebrew/opt/coreutils/libexec/gnubin:$PATH"
|
|
MANPATH="/opt/boxen/homebrew/apt/coreutils/libexec/gnubin:$MANPATH"
|
|
else
|
|
if test -d "$HOME/.rbenv/bin" ; then
|
|
export PATH="$HOME/.rvenv/bin:$PATH"
|
|
fi
|
|
fi
|
|
|
|
# add path to newer bins on cse servers (github/rmblair)
|
|
if test -d /soft/linux/pkg/bin ; then
|
|
export PATH=/soft/linux/pkg/bin:${PATH};
|
|
export PATH=/soft/lus/linux/vim/7.4-$(uname -m)/bin:$PATH;
|
|
fi
|
|
|
|
# List directory when changing (github/r00k)
|
|
chpwd() {
|
|
ls -lvh --color=auto
|
|
}
|
|
|
|
# Larger history
|
|
HISTSIZE=20000
|
|
HISTFILE=~/.zsh_history
|
|
SAVEHIST=20000
|
|
|
|
# Make sure C-s works in vim
|
|
stty start undef
|
|
stty stop undef
|
|
|
|
# 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)
|
|
plugins=(git rbenv)
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
# Aliases/Functions files
|
|
source $HOME/.aliases
|
|
source $HOME/.functions
|
|
|
|
# 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
|
|
|
|
# default editor is vim
|
|
export EDITOR='vim'
|
|
|
|
# init rbenv
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
source /opt/boxen/env.sh
|
|
else
|
|
if test -d "$HOME/.rbenv/bin" ; then
|
|
eval "$(rbenv init -)"
|
|
fi
|
|
fi
|
|
|
|
### Added by the Heroku Toolbelt
|
|
export PATH="/usr/local/heroku/bin:$PATH"
|