use homebrew's completions

Alpha Chen 2 years ago
parent 453d71d907
commit f0ddf53cce
Signed by: alpha
SSH Key Fingerprint: SHA256:3fOT8fiYQG/aK9ntivV3Bqtg8AYQ7q4nV6ZgihOA20g

@ -32,7 +32,7 @@ alias plz=sudo
alias ls=exa
alias emacs="emacs --no-window"
alias tmux="direnv exec / tmux"
alias ,df="git --git-dir=$HOME/.dotfiles --work-tree=$HOME"
alias ,df="git --git-dir=$HOME/.dotfiles.git --work-tree=$HOME"
function eject { command hdiutil eject `df | grep Volumes | grep -i "$@" | ruby -ne 'puts $_[/^[^ ]*/]'`; }
@ -157,4 +157,13 @@ if [ $commands[exa] ]; then
export EXA_COLORS="di=34"
fi
# https://docs.brew.sh/Shell-Completion
if type brew &>/dev/null
then
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
autoload -Uz compinit
compinit
fi
[[ -s "$HOME/.zshrc.local" ]] && . "$HOME/.zshrc.local"

Loading…
Cancel
Save