unsource.sh 505 B

12345678910111213
  1. path_to_remove="/usr/lib/xoronos/py"
  2. PYTHONPATH="$(echo "$PYTHONPATH" | tr ':' '\n' | grep -v "^$path_to_remove" | tr '\n' ':' | sed 's/:$//')"
  3. export PYTHONPATH
  4. path_to_remove="/usr/lib/xoronos"
  5. LD_LIBRARY_PATH="$(echo "$LD_LIBRARY_PATH" | tr ':' '\n' | grep -v "^$path_to_remove" | tr '\n' ':' | sed 's/:$//')"
  6. export LD_LIBRARY_PATH
  7. path_to_remove="$HOME/.local/xoronos/texmf"
  8. TEXMFHOME="$(echo "$TEXMFHOME" | tr ':' '\n' | grep -v "^$path_to_remove" | tr '\n' ':' | sed 's/:$//')"
  9. export TEXMFHOME