Add environment variables for .NET

This commit is contained in:
Andrew Scott 2023-11-26 23:49:32 -05:00
parent 9bc52c33f9
commit f6f0df4654
Signed by: a
GPG key ID: 7CD5A5977E4931C1

View file

@ -2,29 +2,30 @@
# ~/.bash_profile # ~/.bash_profile
# #
# Default text editors
export EDITOR=nvim export EDITOR=nvim
export VISUAL=emacs export VISUAL=emacs
# Ensure XDG env vars are set # Add ~/.local/bin to $PATH
export PATH="${HOME}/.local/bin:${PATH}"
# XDG Base Directories
export XDG_CACHE_HOME="${HOME}"/.cache export XDG_CACHE_HOME="${HOME}"/.cache
export XDG_CONFIG_HOME="${HOME}"/.config export XDG_CONFIG_HOME="${HOME}"/.config
export XDG_DATA_HOME="${HOME}"/.local/share export XDG_DATA_HOME="${HOME}"/.local/share
export XDG_STATE_HOME="${HOME}"/.local/state export XDG_STATE_HOME="${HOME}"/.local/state
# add .local/bin to $PATH # Force Java to behave when not using a DE
export PATH="${HOME}/.local/bin:${PATH}"
# make Java behave when not using a DE
export _JAVA_AWT_WM_NONREPARENTING=1 export _JAVA_AWT_WM_NONREPARENTING=1
# Sometimes needed for gpg passphrase prompt # GPG passphrase prompt
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
# Mozilla + Wayland # Mozilla + Wayland
export MOZ_ENABLE_WAYLAND=1 export MOZ_ENABLE_WAYLAND=1
{{ if eq .chezmoi.hostname "helix" -}} {{ if eq .chezmoi.hostname "helix" -}}
# scale GTK applicatons on hidpi screens # Scale GTK applicatons
export GDK_SCALE=2 GDK_DPI_SCALE=0.50 export GDK_SCALE=2 GDK_DPI_SCALE=0.50
{{- end }} {{- end }}
@ -36,6 +37,13 @@ export HISTFILE="${XDG_STATE_HOME}"/bash_history
# cargo # cargo
export CARGO_HOME="${XDG_DATA_HOME}"/cargo export CARGO_HOME="${XDG_DATA_HOME}"/cargo
# dotnet
export DOTNET_BUNDLE_EXTRACT_BASE_DIR="${XDG_CACHE_HOME}/dotnet_bundle_extract"
export DOTNET_CLI_HOME="${XDG_DATA_HOME}/dotnet/cli"
export DOTNET_CLI_TELEMETRY_OPTOUT=true
export DOTNET_TOOLS_PATH="${XDG_DATA_HOME}/dotnet/tools"
export PATH="${DOTNET_TOOLS_PATH}:${PATH}"
# go # go
export GOPATH="${XDG_DATA_HOME}"/go export GOPATH="${XDG_DATA_HOME}"/go
export GOMODCACHE="${XDG_CACHE_HOME}"/go/mod export GOMODCACHE="${XDG_CACHE_HOME}"/go/mod
@ -68,4 +76,3 @@ export XAUTHORITY="${XDG_RUNTIME_DIR}"/Xauthority
# start river # start river
[[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec dbus-run-session river [[ -z "${DISPLAY}" && "${XDG_VTNR}" -eq 1 ]] && exec dbus-run-session river