39 lines
939 B
Bash
39 lines
939 B
Bash
# add all links in ~/app/bin/
|
|
export PATH=$( find -L ${HOME}/app/bin/ -type d -printf ":%p" 2> /dev/null ):${PATH}
|
|
|
|
# specify locale.
|
|
#export LC_ALL=C
|
|
export LANGUAGE="en_US.UTF-8"
|
|
|
|
# specify editor.
|
|
export EDITOR=nvim
|
|
|
|
# specify man page viewer.
|
|
export MANPAGER="nvim +Man!"
|
|
|
|
# specify android sdk root.
|
|
export ANDROID_SDK_ROOT="$HOME/.android/sdk"
|
|
|
|
# specify tex paths.
|
|
#export TEXMFSYSVAR="$HOME/app/tex/data/var"
|
|
#export TEXMFSYSCONFIG="$HOME/app/tex/data/config"
|
|
export TEXMFVAR="${HOME}/app/tex/data/var"
|
|
export TEXMFCONFIG="${HOME}/app/tex/data/config"
|
|
export TEXMFLOCAL="${HOME}/app/tex/data/local"
|
|
|
|
# Dotfiles exports.
|
|
export BASH_MODULE_PATH="${HOME}/.config/bash/module"
|
|
|
|
# Set java version. Sets to latest when not specified.
|
|
# Usage: export_java <VERSION>
|
|
function export_java() {
|
|
local version="${1}"
|
|
|
|
if [[ "${version}" = "" ]]; then
|
|
help export_java
|
|
return 2
|
|
fi
|
|
|
|
export JAVA_HOME="$(find_nix openjdk-${version})"
|
|
}
|