aboutsummaryrefslogblamecommitdiff
path: root/.profile
blob: 621a56582eb4e6ab0e27fbbb7f79f5259cc55e27 (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/$(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

TODAY_DIR="${XDG_DATA_HOME:-"${HOME}/.local/share"}/today"
TODAY_SUFFIX=".md"
TODAY_CMD="nvim -c 'above sp $(printf '%s/todo%s\n' "$TODAY_DIR" "$TODAY_SUFFIX")' -c \"tabe \$TODAY_DIR\" -c 'tabr' \"\$TODAY_FILE\""

export TODAY_CMD
export TODAY_DIR
export TODAY_SUFFIX

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
# https://github.com/docker/for-win/issues/13632
DOCKER_CLI_HINTS=false

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!"
SVDIR="$HOME/.config/service"

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

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

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

if [ -n "$(which gem 2> /dev/null)" ]
then
	GEM_HOME="$(gem env user_gemhome)"
	export GEM_HOME
	PATH="$PATH:$GEM_HOME/bin"
fi

export PATH

if [ -d "$HOME/.guix-profile/etc/ssl/certs" ]
then
	SSL_CERT_DIR="$HOME/.guix-profile/etc/ssl/certs"
	SSL_CERT_FILE="$SSL_CERT_DIR/ca-certificates.crt"
	CURL_CA_BUNDLE="$SSL_CERT_FILE"
	GIT_SSL_CAINFO="$SSL_CERT_FILE"

	export SSL_CERT_DIR
	export SSL_CERT_FILE
	export GIT_SSL_CAINFO
	export CURL_CA_BUNDLE
fi