# # Executes commands at the start of an interactive session. # # Authors: # Sorin Ionescu # # Source Prezto. if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" fi export EDITOR=vim export VISUAL=vim unsetopt correct # Don't autocorrect setopt no_nomatch # Pass bad matches on setopt no_share_history bindkey "\ep" history-beginning-search-backward bindkey "\en" history-beginning-search-forward alias be='bundle exec' alias tat='tmux new-session -As `basename $PWD`' alias plz='sudo' function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; } if command -v brew &> /dev/null; then if [[ -s `brew --prefix`/share/chruby/chruby.sh ]]; then source `brew --prefix`/share/chruby/chruby.sh source `brew --prefix`/share/chruby/auto.sh chruby ruby fi fi if command -v direnv &> /dev/null; then eval "$(direnv hook zsh)" fi [[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"