|
|
|
@ -33,20 +33,28 @@ alias tmux="direnv exec / tmux"
|
|
|
|
|
|
|
|
|
|
function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; }
|
|
|
|
|
|
|
|
|
|
if [ -e /opt/homebrew/bin/brew ]; then
|
|
|
|
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
|
|
|
|
fi
|
|
|
|
|
if [ -e /usr/local/bin/brew ]; then
|
|
|
|
|
eval "$(/usr/local/bin/brew shellenv)"
|
|
|
|
|
fi
|
|
|
|
|
brew_prefix=$(brew --prefix)
|
|
|
|
|
|
|
|
|
|
if [ $commands[chruby] ]; then
|
|
|
|
|
chruby ruby
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
if [ -e $brew_prefix/opt/fzf/shell/completion.zsh ]; then
|
|
|
|
|
source $brew_prefix/opt/fzf/shell/key-bindings.zsh
|
|
|
|
|
source $brew_prefix/opt/fzf/shell/completion.zsh
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ -e /usr/local/bin/terraform ]; then
|
|
|
|
|
if [ -e $brew_prefix/bin/terraform ]; then
|
|
|
|
|
autoload -U +X bashcompinit && bashcompinit
|
|
|
|
|
complete -o nospace -C /usr/local/bin/terraform terraform
|
|
|
|
|
complete -o nospace -C $brew_prefix/bin/terraform terraform
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
if [ $commands[fzf] ]; then
|
|
|
|
|