.profile: Remove TEXDIR setting.

master
Pierre Neidhardt 2019-09-27 19:45:55 +02:00
parent 08e2a3028c
commit 5be8be8e37
1 changed files with 0 additions and 26 deletions

View File

@ -40,32 +40,6 @@ prependpath () {
## Use this to override system executables.
prependpath "${HOME}/personal/hackpool"
## TeXlive -- TODO: Remove once guix has packaged it all properly.
TEXDIR="${TEXDIR:-/usr/local/texlive}"
if [ -d "${TEXDIR}" ]; then
TEXYEAR=$(/bin/ls -1r "${TEXDIR}" | grep -m1 "[0-9]\{4\}")
TEXDISTRO=$(uname -m)-$(uname | awk '{print tolower($0)}')
TEXFOLDER="${TEXDIR}/${TEXYEAR}/bin/${TEXDISTRO}"
if [ -d "${TEXFOLDER}" ]; then
appendpath $TEXFOLDER
## Same for INFOPATH, which should have an empty entry
## at the end, otherwise Emacs will not use standard locations.
prependpath ${TEXDIR}/${TEXYEAR}/texmf/doc/info INFOPATH
if [ "$(uname -o)" = "GNU/Linux" ]; then
## Under GNU/Linux, MANPATH must contain one empty entry for 'man' to
## lookup the default database. Since BSD uses 'manpath' utility, the
## MANPATH variable is not needed.
prependpath ${TEXDIR}/${TEXYEAR}/texmf/doc/man MANPATH
fi
fi
unset TEXYEAR
unset TEXDISTRO
unset TEXFOLDER
fi
unset TEXDIR
export BIBINPUTS=~/personal/bibliography
## Cask
appendpath "$HOME/.cask/bin"