dotfiles/sh/.config/sh/env
Marty Oehme beb2c7531a
sh: Move main library bibfile to library root
With the switch from jabref/zotero/pubs to papis for library management,
We can now also have nested libraries. This allows me to have 'themed'
libraries in different sub-folders (e.g. one for my academic study, one
for my old university readings, one for computer science, and so on) and
still keep referring to their containing folder as a 'main'
comprehensive library.

As such I moved the library bibtex file into the main library folder and
let it be created from all sub-libraries.
2023-02-11 17:29:49 +01:00

57 lines
1.5 KiB
Bash

#!/usr/bin/env sh
#
# Set global environment variables
# Load XDG specifications
# shellcheck source=xdg
[ -f ~/.config/sh/xdg ] && . ~/.config/sh/xdg
###############################
## BEGIN GLOBAL ENV VARS ##
###############################
# 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/library.bib}"
# these are my personal 'important' application settings
if exist nvim; then
export EDITOR="nvim"
elif exist vim; then
export EDITOR="vim"
elif exist vi; then
export EDITOR="vi"
elif exist micro; then
export EDITOR="micro"
else
export EDITOR="nano"
fi
export BROWSER="qutebrowser"
export TERMINAL="wezterm"
export PAGER="less"
export FILEREADER="zathura"
export FILEMANAGER="vifm"
## gopath
export GOPATH="$HOME/.cache/gopath"
export PATH="$PATH:$GOPATH/bin"
## LANG LOCALE UTF-8
export LC_ALL="en_US.UTF-8"
export LANG="en_US.UTF-8"
# if we forgot to set it treat bash as default
export SHELL=${SHELL:-/bin/bash}
export TERM=xterm-256color
if exist fzf; then
export FZF_DEFAULT_OPTS="--bind 'tab:toggle+down,shift-tab:toggle+up,ctrl-g:top,ctrl-t:toggle-preview,ctrl-d:preview-half-page-down,ctrl-u:preview-half-page-up' --color=light -1 -m --delimiter :"
fi