.profile: Remove TEXDIR setting.
parent
08e2a3028c
commit
5be8be8e37
26
.profile
26
.profile
|
@ -40,32 +40,6 @@ prependpath () {
|
||||||
## Use this to override system executables.
|
## Use this to override system executables.
|
||||||
prependpath "${HOME}/personal/hackpool"
|
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
|
## Cask
|
||||||
appendpath "$HOME/.cask/bin"
|
appendpath "$HOME/.cask/bin"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue