From f5039e6c2d50f9c0c034c96ed60f9a62f7d618fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Doma=C5=84ski?= Date: Thu, 23 Nov 2023 16:39:05 +0100 Subject: [PATCH] dynamic aliases --- .zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index 9974a2c..5312479 100755 --- a/.zshrc +++ b/.zshrc @@ -62,7 +62,11 @@ setopt INC_APPEND_HISTORY setopt SHARE_HISTORY # Basic auto/tab complete: -autoload -U compinit +if type brew &>/dev/null; then + FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}" +fi + +autoload -Uz compinit zstyle ':completion:*' menu select zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'