Add pabib alias and BibTeX template to papis configuration

- Add pabib alias for quick BibTeX export using 'papis export --format bibtex'
- Add BibTeX template file to customize BibTeX output format

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Yan Lin 2025-07-31 12:35:00 +02:00
parent 716d8578dc
commit 168ead6c1f

View file

@ -46,11 +46,32 @@
---
'';
# Papis BibTeX template
home.file."Library/Application Support/papis/templates/bibtex.template".text = ''
@{doc[type]}{doc[ref],
author = {doc[author]},
title = {doc[title]},
year = {doc[year]},
journal = {doc[journal]},
booktitle = {doc[booktitle]},
publisher = {doc[publisher]},
volume = {doc[volume]},
number = {doc[number]},
pages = {doc[pages]},
doi = {doc[doi]},
url = {doc[url]},
abstract = {doc[abstract]}
}
'';
# Shell aliases for papis workflow
programs.zsh.shellAliases = {
# Bibliography formatting
pals = "papis list --template \"$HOME/Library/Application Support/papis/templates/bibitem.template\"";
# BibTeX export
pabib = "papis export --format bibtex";
# File operations
paurl = "papis addto -u";