diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-10-10 17:37:40 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-10-10 17:56:32 +0100 |
commit | 99587dca308e085b2accb72a89896b5a63cb20e1 (patch) | |
tree | 8924e5218e59eba49e5054c209a32fabf5ac13ab | |
parent | d8a7f039c1258557df3a24e35bd659c5c9aaedd8 (diff) |
Add script for PhD references
-rwxr-xr-x | bin/bin/references | 5 |
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" & |