diff options
author | Urbain Vaes <urbain@vaes.uk> | 2017-12-01 12:15:23 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2017-12-01 12:15:23 +0100 |
commit | c849e346ce58838493dc3ea78808131a40596674 (patch) | |
tree | 8c9d2090042fb0c464a4c6994ee7ea61884a1a0e /bin | |
parent | 34a998e35634a4a7d2d57c47ecd32dea181be878 (diff) |
Add extensions in bin/references
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/bin/references | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bin/references b/bin/bin/references index a4662d2..209c9f9 100755 --- a/bin/bin/references +++ b/bin/bin/references @@ -1,5 +1,5 @@ #!/bin/bash REF_DIR="$HOME/phd/references" -PDF=$(find $REF_DIR -name "*.pdf" -printf "%P\n") +PDF=$(find $REF_DIR -regex ".*.\(pdf\|djvu\|PDF\|ps\)" -printf "%P\n") TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:") [[ -n $TARGET ]] && exec zathura "$REF_DIR/$TARGET" |