2013-05-10 18:06:03 -04:00
|
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
2015-05-15 00:55:47 -04:00
|
|
|
NVM_DIR="/usr/local/opt/nvm"
|
2014-09-22 22:53:53 -04:00
|
|
|
else
|
2015-05-12 23:33:11 -04:00
|
|
|
NVM_DIR="/home/atomaka/.nvm"
|
2013-05-10 18:06:03 -04:00
|
|
|
fi
|
|
|
|
|
2015-12-10 16:17:09 -05:00
|
|
|
[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
|
|
|
|
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
|
2013-09-18 21:08:28 -04:00
|
|
|
|
2014-09-05 00:23:33 -04:00
|
|
|
# clean up duplicate paths
|
|
|
|
typeset -U PATH
|
|
|
|
|
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
|
|
|
|
|
|
|
|
# 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
|
2015-12-11 00:31:30 -05:00
|
|
|
source $HOME/.zsh/prompt
|
2013-04-29 01:14:37 -04:00
|
|
|
|
2014-10-23 18:03:58 -04:00
|
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
|
|
source $HOME/.aliases-mac
|
|
|
|
fi
|
|
|
|
|
2013-05-28 23:32:51 -04:00
|
|
|
# Bind insert_sudo function
|
|
|
|
zle -N insert-sudo
|
|
|
|
bindkey "^z" insert-sudo
|
|
|
|
|
2013-05-01 10:48:46 -04:00
|
|
|
# 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-05-01 10:48:46 -04:00
|
|
|
|
2013-12-16 14:12:00 -05:00
|
|
|
# init rbenv
|
2015-12-11 08:45:55 -05:00
|
|
|
if test -d "$HOME/.rbenv"; then
|
2014-09-05 00:29:47 -04:00
|
|
|
eval "$(rbenv init -)"
|
2013-08-22 01:35:40 -04:00
|
|
|
fi
|
2014-09-05 00:32:23 -04:00
|
|
|
|
2015-05-15 00:55:47 -04:00
|
|
|
# load nvm
|
2015-06-10 09:10:58 -04:00
|
|
|
if test -d "$NVM_DIR"; then
|
|
|
|
source "$NVM_DIR/nvm.sh"
|
|
|
|
fi
|