45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
#!/usr/bin/env sh
|
|
#
|
|
# Set global environment variables
|
|
|
|
# Load XDG specifications
|
|
# shellcheck source=xdg
|
|
[ -f ~/.config/sh/xdg ] && . ~/.config/sh/xdg
|
|
|
|
# anything on BIN_HOME should be executable form anywhere
|
|
export PATH="$PATH:$XDG_BIN_HOME"
|
|
|
|
###############################
|
|
## BEGIN GLOBAL ENV VARS ##
|
|
###############################
|
|
|
|
# if we forgot to set it treat bash as default
|
|
export SHELL=${SHELL:-/bin/bash}
|
|
|
|
# will be picked up by many programs as notes directory
|
|
export WIKIROOT="${WIKIROOT:-$HOME/documents/notes}"
|
|
# will be picked up by many programs as library root directory
|
|
export LIBRARYROOT="${LIBRARYROOT:-$HOME/documents/library}"
|
|
# the default bibtex file to work on
|
|
# will change over time as primary projects change
|
|
# basically functions as 'default library' variable
|
|
export BIBFILE="${BIBFILE:-$LIBRARYROOT/academia/academia.bib}"
|
|
|
|
# these are my personal 'important' application settings
|
|
export EDITOR=nvim
|
|
export BROWSER=qutebrowser
|
|
|
|
export TERMINAL="alacritty"
|
|
export PAGER="less"
|
|
|
|
export FILEREADER="zathura"
|
|
export FILEMANAGER="vifm"
|
|
|
|
## gopath
|
|
export GOPATH="$HOME/projects/gopath/"
|
|
export PATH="$PATH:$GOPATH/bin"
|
|
|
|
## LANG LOCALE UTF-8
|
|
export LC_ALL="en_US.UTF-8"
|
|
export LANG="en_US.UTF-8"
|