aboutsummaryrefslogblamecommitdiff
path: root/.profile
blob: fbe3015744520d54e5ca6df4fc1acd84e6390cd3 (plain) (tree)
1
2
3
4
5
6
7
8
9
                 
                            






                                               


          
                          
                                             

                          
                                                               
                                  
                              






                                                                                                                 
 




                                  
 





                                                            
                
    

                                                   
  
 

                              
               
                           












                                          
 

                                                                                                                  
 
#!/usr/bin/env sh
if [ -z "$XDG_RUNTIME_DIR" ]
then
	XDG_RUNTIME_DIR="/tmp/$UID-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"
EDITOR="$(which nvim 2> /dev/null || which vim 2> /dev/null || which nano 2> /dev/null || which vi 2> /dev/null)"
GTK_THEME="Dracula"
TERMINAL="st"

export DENO_INSTALL
export DENO_NO_UPDATE_CHECK
export DENO_NO_PROMPT
export DOTNET_CLI_TELEMETRY_OPTOUT
export NEXT_TELEMETRY_DEBUG

export GOPROXY
export EDITOR
export GTK_THEME
export TERMINAL

BAT="$(which bat 2> /dev/null || which batcat 2> /dev/null)"
if [ -n "$BAT" ]
then
	MANPAGER="sh -c 'col -bx | $BAT -l man -p'"
	export MANPAGER
fi

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"

	export SDL_VIDEODRIVER
	export _JAVA_AWT_WM_NONREPARENTING
	export QT_QPA_PLATFORM
	export XDG_CURRENT_DESKTOP
	export XDG_SESSION_DESKTOP
fi

PATH="$HOME/go/bin:$DENO_INSTALL/bin:$BUN_INSTALL/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/.luarocks/bin:$PATH"
export PATH