Andrew Tomaka
686a06e2b6
The zshrc file provided by Debian (and related distributions) at /etc/zsh/zshrc runs compinit. This means if we run compinit in our own dotfiles, we will run it twice with minor impact to our startup time. It also means if we are lazy and add a completion path to our user zshrc (instead of user zshenv), compinit will run before we modify fpath causing a complete rebuild and dump of completions since the file count will change with significant impact to our startup time. So let's follow the instructions in the system zshrc file: If you don't want compinit called here, place the line skip_global_compinit=1 in your $ZDOTDIR/.zshenv
37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
PERSONAL_BIN_PATH="$HOME/bin"
|
|
|
|
NODENV_PATH="$HOME/.nodenv/bin"
|
|
RBENV_PATH="$HOME/.rbenv/bin"
|
|
|
|
ZDOTDIR=$HOME/.config/zsh
|
|
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
HOMEBREW_PREFIX="/opt/homebrew"
|
|
HOMEBREW_CELLAR="/opt/homebrew/Cellar"
|
|
HOMEBREW_REPOSITORY="/opt/homebrew"
|
|
|
|
GNU_SED_PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin"
|
|
GNU_TOOLS_PATH="/opt/homebrew/opt/coreutils/libexec/gnubin"
|
|
GNU_TOOLS_MAN_PATH="/opt/homebrew/opt/coreutils/libexec/gnuman"
|
|
|
|
PATH="/usr/local/bin:/Library/Apple/usr/bin:$PATH"
|
|
|
|
PATH="/opt/homebrew/bin:/opt/homebrew/sbin${PATH+:$PATH}";
|
|
MANPATH="/opt/homebrew/share/man${MANPATH+:$MANPATH}:";
|
|
INFOPATH="/opt/homebrew/share/info:${INFOPATH:-}";
|
|
|
|
[[ -d "$GNU_SED_PATH" ]] && PATH="$GNU_SED_PATH:$PATH"
|
|
[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
|
|
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
|
|
fi
|
|
|
|
[[ -d "$RBENV_PATH" ]] && PATH="$RBENV_PATH:$PATH"
|
|
[[ -d "$NODENV_PATH" ]] && PATH="$NODENV_PATH:$PATH"
|
|
[[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH"
|
|
|
|
# EDITOR
|
|
EDITOR=vim
|
|
GIT_EDITOR=vim
|
|
|
|
# Don't let Debian distributions run compinit
|
|
skip_global_compinit=1
|