dotfiles/zshrc
Andrew Tomaka b5cab9cfa8 Fix for emacs shortcuts
From tmux docs:

"The default is emacs, unless the VISUAL or EDITOR environment variables are set
and contain the string `vi'."

For some reason,

set -g status-keys emacs

does not seem to override.  For now, let's get our emacs keybinds back by
clearing EDITOR.
2016-08-14 21:08:10 -04:00

46 lines
789 B
Bash

[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
# clean up duplicate paths
typeset -U PATH
# Larger history
HISTSIZE=20000
HISTFILE=~/.zsh_history
SAVEHIST=20000
# Make sure C-s works in vim
stty start undef
stty stop undef
# Aliases/Functions files
source $HOME/.aliases
source $HOME/.functions
source $HOME/.zsh/prompt
if [[ "$OSTYPE" == darwin* ]]; then
source $HOME/.aliases-mac
fi
# Bind insert_sudo function
zle -N insert-sudo
bindkey "^z" insert-sudo
# init rbenv
if test -d "$HOME/.rbenv"; then
eval "$(rbenv init -)"
fi
# load nvm
if test -d "$NVM_DIR"; then
source "$NVM_DIR/nvm.sh"
fi
# completion
autoload -U compinit
compinit
setopt completeinword
# directory
setopt auto_cd