summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/bin/references2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bin/references b/bin/bin/references
index a578728..68d1e4e 100755
--- a/bin/bin/references
+++ b/bin/bin/references
@@ -1,5 +1,5 @@
#!/bin/bash
REF_DIR="$HOME/phd/references"
-PDF=$(locate "$REF_DIR/**/*.pdf")
+PDF=$(find $REF_DIR -name "*.pdf" -printf "%P\n")
TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:")
[[ -n $TARGET ]] && zathura "$REF_DIR/$TARGET" &