summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2017-05-02 15:08:34 +0100
committerUrbain Vaes <urbain@vaes.uk>2017-05-02 15:08:34 +0100
commit7e773ede46fca474cbd560bb78a2810c112bb813 (patch)
tree19e357ddc314d778da6bb48a961ae9cbc32ee1a1 /bin
parentd093fa1693da1e178fafb64576c335000cfb600f (diff)
Use find instead of locate
Diffstat (limited to 'bin')
-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" &