sh: Add default open script
Simple wrapper for xdg-open functionality. Simply refers to xdg-open except if there exists mimeo on the system which it will refer to instead. So, a simple preference modificator for mimeo over xdg-open since that is my preference too. Also gave it a short name so I can do open whenever I want and don't have to tax my left hand with tying xdg.
This commit is contained in:
parent
dfaed8c9dd
commit
4cc03a611a
8 changed files with 34 additions and 28 deletions
|
|
@ -12,7 +12,7 @@ docsdir = ~/documents/library/doc
|
|||
doc_add = copy
|
||||
|
||||
# the command to use when opening document files
|
||||
open_cmd = xdg-open
|
||||
open_cmd = open
|
||||
|
||||
# which editor to use when editing bibtex files.
|
||||
# if using a graphical editor, use the --wait or --block option, i.e.:
|
||||
|
|
|
|||
|
|
@ -26,4 +26,4 @@ key=$(echo "$choice" | sed -E 's/.*\((\w+)\)$/\1/')
|
|||
library="$(dirname "$(realpath "$BIBFILE")")/pdf"
|
||||
|
||||
# find and open the key-associated pdf file
|
||||
${FILEREADER:-xdg-open} "$(find "$library" -type f -name "$key *.pdf")"
|
||||
${FILEREADER:-open} "$(find "$library" -type f -name "$key *.pdf")"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue