40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
system_type=$(uname -s)
 | 
						|
 | 
						|
# shellcheck disable=SC2148
 | 
						|
# environment variables
 | 
						|
export COLUMNS
 | 
						|
export GREP_OPTIONS='--color=auto'
 | 
						|
 | 
						|
export BUN_INSTALL="$HOME/.bun"
 | 
						|
export PATH=$HOME/.local/bin:$BUN_INSTALL/bin:$PATH
 | 
						|
 | 
						|
export ZDOTDIR=${ZDOTDIR:-$HOME/.config/zsh}
 | 
						|
export ZPLUGINDIR=${ZPLUGINDIR:-${ZDOTDIR}/plugins}
 | 
						|
# export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters
 | 
						|
export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=$ZPLUGINDIR/zsh-syntax-highlighting/highlighters
 | 
						|
export NVM_DIR=$HOME/.nvm
 | 
						|
 | 
						|
[[ "$(command -v bat)" ]] && export PAGER="bat -p"
 | 
						|
 | 
						|
{% if yadm.os == "Darwin" %}
 | 
						|
export CLICOLOR=1
 | 
						|
export HOMEBREW_BUNDLE_DUMP_NO_VSCODE=1
 | 
						|
 | 
						|
{% endif %}
 | 
						|
 | 
						|
{% 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 %}
 |