summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-10-10 17:37:40 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-10-10 17:56:32 +0100
commit99587dca308e085b2accb72a89896b5a63cb20e1 (patch)
tree8924e5218e59eba49e5054c209a32fabf5ac13ab /bin
parentd8a7f039c1258557df3a24e35bd659c5c9aaedd8 (diff)
Add script for PhD references
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bin/references5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/bin/references b/bin/bin/references
new file mode 100755
index 0000000..a578728
--- /dev/null
+++ b/bin/bin/references
@@ -0,0 +1,5 @@
+#!/bin/bash
+REF_DIR="$HOME/phd/references"
+PDF=$(locate "$REF_DIR/**/*.pdf")
+TARGET=$(echo "${PDF//"$REF_DIR/"/}" | dmenu -i -p "Open File:")
+[[ -n $TARGET ]] && zathura "$REF_DIR/$TARGET" &