Fix pdf compilation targets and Library envvar
Pdfs will be compiled, replacing special characters with underscores; this fix also looks for underscored files when trying to open the compiled version of a file. The Library environment variable (for my default bibtex library directory) overwrote yay's library directory; it has been renamed to LIBRARYROOT to both mirror WIKIROOT as my note directory and keep the LIBRARY variable empty so yay will continue working.
This commit is contained in:
parent
66cdb395aa
commit
bd96394d67
2 changed files with 6 additions and 2 deletions
|
|
@ -11,6 +11,10 @@ basename="$(echo "$1" | sed 's/\.[^\/.]*$//')"
|
|||
openCompiledDoc() {
|
||||
if [ -f "$basename".pdf ]; then
|
||||
setsid "$FILEREADER" "$basename.pdf"
|
||||
elif [ -f "$(echo "$basename" | sed 's/ /-/g')".pdf ]; then
|
||||
setsid "$FILEREADER" "$(echo "$basename" | sed 's/ /-/g').pdf"
|
||||
elif [ -f "$(echo "$basename" | sed 's/ /_/g')".pdf ]; then
|
||||
setsid "$FILEREADER" "$(echo "$basename" | sed 's/ /_/g').pdf"
|
||||
elif [ -f "$basename".html ]; then
|
||||
setsid "$BROWSER" "$basename.html"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue