dotfiles/.config/zsh/environment##template

36 lines
1.0 KiB
Plaintext
Raw Normal View History

2024-10-29 22:57:09 -05:00
system_type=$(uname -s)
# shellcheck disable=SC2148
# environment variables
export COLUMNS
export GREP_OPTIONS='--color=auto'
export PATH=$HOME/.local/bin:$PATH
export ZDOTDIR=${ZDOTDIR:-$HOME/.config/zsh}
export ZPLUGINDIR=${ZPLUGINDIR:-${ZDOTDIR}/plugins}
export NVM_DIR=$HOME/.nvm
2024-10-30 07:41:19 -05:00
[[ "$(command -v bat)" ]] && export PAGER="bat -p"
2024-10-29 22:57:09 -05:00
{% if yadm.os == "Darwin" %}
export CLICOLOR=1
export HOMEBREW_BUNDLE_DUMP_NO_VSCODE=1
{% if yadm.class == "Work" %}
export NODE_EXTRA_CA_CERTS=$HOME/.config/target-certs/tgt-ca-bundle.crt
export VAULT_ADDR=https://prod.vault.target.com:443
export NODE_OPTIONS="--max_old_space_size=12288"
# I don't think this is needed; leaving it commented for now
# export GH_HOST=git.target.com
# 1Password secret references
# See:
# - https://developer.1password.com/docs/cli/secret-reference-syntax/
# - https://developer.1password.com/docs/cli/secrets-environment-variables/
export VPN_USERNAME="op://Target/Target Credentials/username"
export VPN_PASSWORD="op://Target/Target Credentials/password"
{% endif %}
{% endif %}