summarylogtreecommitdiffstats
path: root/zotero
diff options
context:
space:
mode:
Diffstat (limited to 'zotero')
-rw-r--r--zotero17
1 files changed, 17 insertions, 0 deletions
diff --git a/zotero b/zotero
new file mode 100644
index 000000000000..a6ebc6344bc0
--- /dev/null
+++ b/zotero
@@ -0,0 +1,17 @@
+if [[ -d "$HOME"/.zotero/zotero ]]; then
+ index=0
+ PSNAME="$browser"
+ while read -r profileItem; do
+ if [[ $(echo "$profileItem" | cut -c1) = "/" ]]; then
+ # path is not relative
+ DIRArr[$index]="$profileItem"
+ else
+ # we need to append the default path to give a
+ # fully qualified path
+ DIRArr[$index]="$HOME/.zotero/zotero/$profileItem"
+ fi
+ (( index=index+1 ))
+ done < <(grep '[Pp]'ath= "$HOME"/.zotero/zotero/profiles.ini | sed 's/[Pp]ath=//')
+fi
+
+check_suffix=1