From 51bba6d423b12b5c8b077fe4099263a663f6a59b Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Tue, 18 Nov 2025 09:35:26 -0500 Subject: [PATCH] Add helpers for CMP editorial stuff --- zshrc.org | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zshrc.org b/zshrc.org index b2c6529..7103aac 100644 --- a/zshrc.org +++ b/zshrc.org @@ -293,7 +293,11 @@ BIG FAT WARNING: this needs to specify an actual file as a destination #+begin_src sh function o--generic () { - (cd $1; eca "$(find | sed -e "s+^./++" | fzf)") + (cd $1; eca "$(find | sed -e "s+^./++" | fzf)") + } + function o--generic-pdf () + { + (cd $1; eca "$(find -iname "*pdf" | sed -e "s+^./++" | fzf)") } #+end_src Should we rather use aliases? yes please @@ -309,6 +313,10 @@ BIG FAT WARNING: this needs to specify an actual file as a destination function o-offprints () { (o--generic ~/work/offprints) } + + function o-cmp () { + (o--generic-pdf ~/work/editor/cmp/submissions) + } #+end_src *** shell helpers :daily:pi:android: