dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit d4f25e8cc393cd0819c2ab800afad7e79d8a15ac
parent 6776450520994b53df5fcafc8de976493c0dce0a
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 12 Sep 2020 11:04:06 -0700

Use a local .zsh completions directory

Rather than hardcoding extra completion paths to the homebrew install
directory on macOS only, use ~/.local/zsh/site-functions and just
symlink things there as desired. This makes things more consistent
across machines.

Diffstat:
M.zshrc | 4+---
1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -17,9 +17,7 @@ bindkey '^Y' push-line bindkey '^R' history-incremental-search-backward # Add zsh completion definition dirs. -if [[ "$(uname -s)" == "Darwin" ]]; then - fpath=($HOME/.homebrew/share/zsh/site-functions $fpath) -fi +fpath=($HOME/.local/zsh/site-functions $fpath) # Specify where compinstall writes cfg commands. Default, but saves checks. zstyle ':compinstall' filename "$HOME/.zshrc"