|
|
|
#
|
|
|
|
# Executes commands at the start of an interactive session.
|
|
|
|
#
|
|
|
|
# Authors:
|
|
|
|
# Sorin Ionescu <sorin.ionescu@gmail.com>
|
|
|
|
#
|
|
|
|
|
|
|
|
# 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
|
|
|
|
unsetopt flowcontrol # So ^S and ^Q can be used
|
|
|
|
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 | ruby -e "puts ARGF.read.strip.downcase.gsub(/[^\w]+/, ?-)"`'
|
|
|
|
alias plz=sudo
|
|
|
|
alias ls=exa
|
|
|
|
|
|
|
|
function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; }
|
|
|
|
|
|
|
|
if type chruby > /dev/null; then
|
|
|
|
chruby ruby
|
|
|
|
fi
|
|
|
|
|
|
|
|
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"
|
|
|
|
|
|
|
|
if [ -e /usr/local/opt/fzf/shell/completion.zsh ]; then
|
|
|
|
source /usr/local/opt/fzf/shell/key-bindings.zsh
|
|
|
|
source /usr/local/opt/fzf/shell/completion.zsh
|
|
|
|
|
|
|
|
export FZF_DEFAULT_COMMAND="rg --files"
|
|
|
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
|
|
|
export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND"
|
|
|
|
alias fzf=fzf-tmux
|
|
|
|
fi
|