aboutsummaryrefslogtreecommitdiff
path: root/.profile
blob: 7a92525f3db553ce1910719ed833556d3e423bd5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/env sh
if [ -z "$XDG_RUNTIME_DIR" ]
then
	XDG_RUNTIME_DIR="/tmp/$(id -u)-runtime-dir"
	export XDG_RUNTIME_DIR
	if [ ! -d "$XDG_RUNTIME_DIR" ]
	then
		mkdir "$XDG_RUNTIME_DIR"
		chmod 0700 "$XDG_RUNTIME_DIR"
	fi
fi

DENO_INSTALL="$HOME/.deno"
# https://github.com/denoland/deno/pull/15974
DENO_NO_UPDATE_CHECK="yes"
DENO_NO_PROMPT="yes"
# https://learn.microsoft.com/en-us/dotnet/core/tools/telemetry
DOTNET_CLI_TELEMETRY_OPTOUT="true"
# https://nextjs.org/telemetry
NEXT_TELEMETRY_DEBUG=1

BUN_INSTALL="$HOME/.bun"
GOPROXY="direct"
GOTOOLCHAIN="local"
EDITOR="$(which nvim 2> /dev/null || which vim 2> /dev/null || which nano 2> /dev/null || which vi 2> /dev/null)"
GTK_THEME="Dracula"
BAT_THEME="Dracula"
TERMINAL="alacritty"
XDG_CONFIG_HOME="$HOME/.config"
XDG_CACHE_DIR="$HOME/.cache"
GOPATH="$XDG_CACHE_DIR/go"
PNPM_HOME="$HOME/.local/share/pnpm"
MANPAGER="nvim +Man!"

export DENO_INSTALL
export DENO_NO_UPDATE_CHECK
export DENO_NO_PROMPT
export DOTNET_CLI_TELEMETRY_OPTOUT
export NEXT_TELEMETRY_DEBUG
export XDG_CONFIG_HOME
export XDG_CACHE_DIR
export GOPATH
export PNPM_HOME

export GOPROXY
export EDITOR
export GTK_THEME
export BAT_THEME
export TERMINAL
export MANPAGER

SWAY_PROCESSES="$(pgrep sway)"

# Sway specific
if [ -n "$SWAY_PROCESSES" ]
then
	SDL_VIDEODRIVER="wayland"
	_JAVA_AWT_WM_NONREPARENTING=1
	QT_QPA_PLATFORM="wayland"
	XDG_CURRENT_DESKTOP="sway"
	XDG_SESSION_DESKTOP="sway"
	XDG_SESSION_TYPE="wayland"

	export SDL_VIDEODRIVER
	export _JAVA_AWT_WM_NONREPARENTING
	export QT_QPA_PLATFORM
	export XDG_CURRENT_DESKTOP
	export XDG_SESSION_DESKTOP
	export XDG_SESSION_TYPE
fi

PATH="$PNPM_HOME:\
$GOPATH/bin:\
$DENO_INSTALL/bin:\
$BUN_INSTALL/bin:\
$HOME/.cargo/bin:\
$HOME/.local/bin:\
$HOME/.luarocks/bin:\
$HOME/.dotnet/tools:\
$PATH"
export PATH