Skip to content

Commit

Permalink
maint: condense exports and update log colors
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Doster <mvdoster@gmail.com>
  • Loading branch information
vladdoster committed Oct 4, 2022
1 parent 62b6012 commit f741312
Showing 1 changed file with 21 additions and 25 deletions.
46 changes: 21 additions & 25 deletions zsh/.zshenv
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ activate_brew() {
LOCATIONS=( "${HOME}/.linuxbrew/Homebrew" '/home/linuxbrew/.linuxbrew' '/opt/homebrew' '/usr/local' )
for F_PATH in $LOCATIONS; do
if [[ -e "${F_PATH}/bin/brew" ]] {
_echo "%F{blue}[INFO]%f: %F{cyan}OS%f @ %F{green}${OSTYPE} [$(uname -m)]%f"
_echo "%F{white}[INFO]%f: %F{cyan}OS%f @ %F{green}${OSTYPE} [$(uname -m)]%f"
if eval "${F_PATH}/bin/brew shellenv" &>/dev/null; then
export PATH="${PATH:+"$PATH:"}${F_PATH}/bin"
# export PATH="${F_PATH}/bin:$PATH"
_echo "%F{blue}[INFO]%f: %F{cyan}Homebrew%f @ %F{green}${F_PATH}/bin/brew%f"
_echo "%F{white}[INFO]%f: %F{cyan}Homebrew%f @ %F{green}${F_PATH}/bin/brew%f"
break
fi
}
Expand Down Expand Up @@ -55,31 +55,27 @@ path_append \
(( ${+XDG_CACHE_HOME} )) || export XDG_CACHE_HOME="$HOME/.cache"
(( ${+XDG_CONFIG_HOME} )) || export XDG_CONFIG_HOME="$HOME/.config"
(( ${+XDG_DATA_HOME} )) || export XDG_DATA_HOME="$HOME/.local/share"
export AZURE_CONFIG_DIR="$XDG_DATA_HOME"/azure
export CLICOLOR=1
export DOTFILES="$XDG_CONFIG_HOME"/dotfiles
export GIT_CONFIG="$XDG_CONFIG_HOME"/git/config
export PIP_CONFIG="$XDG_CONFIG_HOME"/pip
export PYTHONSTARTUP="$XDG_CONFIG_HOME"/python/init-repl.py
export SUBVERSION_HOME="$XDG_CONFIG_HOME"/subversion
export TFENV_INSTALL_DIR="${XDG_DATA_HOME}"/.tfenv
export VIMDOTDIR="$XDG_CONFIG_HOME"/vim
export XML_CATALOG_FILES=/opt/homebrew/etc/xml/catalog # asciidoc related
export ZDOTDIR="$XDG_CONFIG_HOME"/zsh
export \
AZURE_CONFIG_DIR="$XDG_DATA_HOME"/azure \
DOTFILES="$XDG_CONFIG_HOME"/dotfiles \
GIT_CONFIG="$XDG_CONFIG_HOME"/git/config \
PIP_CONFIG="$XDG_CONFIG_HOME"/pip \
PYTHONSTARTUP="$XDG_CONFIG_HOME"/python/init-repl.py \
SUBVERSION_HOME="$XDG_CONFIG_HOME"/subversion \
TFENV_INSTALL_DIR="${XDG_DATA_HOME}"/.tfenv \
VIMDOTDIR="$XDG_CONFIG_HOME"/vim \
ZDOTDIR="$XDG_CONFIG_HOME"/zsh
# +───────────────+
# │ ENV VARIABLES │
# +───────────────+
export ARCHPREFERENCE="arm64e,arm64,x86_64"
export COMPOSE_DOCKER_CLI_BUILD=1
export DISABLE_MAGIC_FUNCTIONS=true
export DOCKER_BUILDKIT=1
export HOMEBREW_FORCE_BREWED_CURL=1
export HOMEBREW_NO_AUTO_UPDATE=1
export HOMEBREW_NO_ENV_HINTS=1
export HOMEBREW_NO_INSTALL_CLEANUP=1
export LESS='-F -g -i -M -R -S -w -X -z-4'

# local GO_PROXY="releases.hashicorp.com/*,releases.hashicorp.com/terraform/*,proxy.golang.org/,hashicorp.com*,hashicorp.com/*,releases.hashicorp.com/*"
# for ENV_VAR in GOINSECURE GONOSUMDB GOPRIVATE ; do export $ENV_VAR="${GO_PROXY}" ;done
export \
ARCHPREFERENCE="arm64e,arm64,x86_64" \
COMPOSE_DOCKER_CLI_BUILD=1 \
DISABLE_MAGIC_FUNCTIONS=true \
DOCKER_BUILDKIT=1 \
HOMEBREW_FORCE_BREWED_CURL=1 \
HOMEBREW_NO_AUTO_UPDATE=1 \
HOMEBREW_NO_ENV_HINTS=1 \
HOMEBREW_NO_INSTALL_CLEANUP=1

# vim:ft=zsh:sw=2:sts=2

0 comments on commit f741312

Please sign in to comment.