Fix tmux window naming when SSHing and fix Darwin/arm64 completions loading.

This commit is contained in:
2022-02-14 23:10:34 +05:00
parent f4bf8402b2
commit f62e3c95c6
2 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -1,6 +1,11 @@
# Mac related - ensure that homebrew path on arm64 is added to fpath,
# otherwise autocompletions from installed packages won't work.
if [ "${OS}" = "Darwin" ] && [ "${OS_ARCH}" = "arm64" ]; then
export fpath=(${fpath} /opt/homebrew/share/zsh/site-functions)
fi
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select=2
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'