summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-10-13 01:41:23 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-10-13 01:41:23 +0100
commit94fade2154ff4166bf8eec481d3ec05257903771 (patch)
treed852501dc338b0dc0a037002ef4fe54496bfab6b /bin
parent087ec15c324abeba5c9f768f82f82ef3f050ce8e (diff)
parent831fccc272518113401b7f62bb23e62afc706e03 (diff)
Merge branch 'master' of vaes.uk:public/dotfiles
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" &