dotfiles/zsh/.zshenv

56 lines
1.8 KiB
Text
Raw Normal View History

ZDOTDIR=$HOME/.config/zsh
2023-08-29 23:19:09 -04:00
ZDOT_MAX_BRANCH_LENGTH=30
2022-11-22 20:26:02 -05:00
XDG_CONFIG_HOME="$HOME/.config"
2021-11-02 20:14:26 -04:00
PERSONAL_BIN_PATH="$HOME/bin"
PERSONAL_FPATH="$ZDOTDIR/completions"
2021-11-02 20:14:26 -04:00
2022-05-04 20:41:34 -04:00
CARGO_PATH="$HOME/.cargo/bin"
2021-11-06 13:00:08 -04:00
2021-12-21 14:48:18 -05:00
if [[ "$OSTYPE" == darwin* ]]; then
HOMEBREW_PREFIX="/opt/homebrew"
HOMEBREW_CELLAR="/opt/homebrew/Cellar"
HOMEBREW_REPOSITORY="/opt/homebrew"
2022-01-18 09:19:41 -05:00
GNU_SED_PATH="/opt/homebrew/opt/gnu-sed/libexec/gnubin"
GNU_TAR_PATH="/opt/homebrew/opt/gnu-tar/libexec/gnubin"
2021-12-21 14:48:18 -05:00
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:-}";
2022-01-18 09:19:41 -05:00
[[ -d "$GNU_SED_PATH" ]] && PATH="$GNU_SED_PATH:$PATH"
[[ -d "$GNU_TAR_PATH" ]] && PATH="$GNU_TAR_PATH:$PATH"
2021-12-21 14:48:18 -05:00
[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
2022-09-13 20:17:06 -04:00
elif [[ "$OSTYPE" == linux* ]]; then
HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew";
HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar";
HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew";
PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}";
MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:";
INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
2021-12-21 14:48:18 -05:00
fi
2022-05-04 20:41:34 -04:00
[[ -d "$CARGO_PATH" ]] && PATH="$CARGO_PATH:$PATH"
2021-11-02 20:14:26 -04:00
[[ -d "$PERSONAL_BIN_PATH" ]] && PATH="$PERSONAL_BIN_PATH:$PATH"
[[ -d "$PERSONAL_FPATH" ]] && FPATH="$PERSONAL_FPATH:$FPATH"
2016-02-11 08:43:34 -05:00
# EDITOR
if command -v nvim > /dev/null; then
export {EDITOR,GIT_EDITOR}=nvim
else
export {EDITOR,GIT_EDITOR}=vim
fi
# Don't let Debian distributions run compinit
skip_global_compinit=1