From ef67df6ead8f78e0a732e08be9d6c057dba51c8e Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Fri, 8 May 2026 13:39:22 -0400 Subject: [PATCH] Add m365 poor man integration --- zshrc.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/zshrc.org b/zshrc.org index 8f38a9a..0a3be91 100644 --- a/zshrc.org +++ b/zshrc.org @@ -311,6 +311,15 @@ BIG FAT WARNING: this needs to specify an actual file as a destination set-konsole-title ${previous_title} } #+end_src +*** m365 helpers :daily: + This function opens a file in the onedrive shared folder in the + suitable office365 web-app + #+begin_src sh + function m365-open() { + file=$(realpath $1) + xdg-open $(echo $file | sed -e 's+/home/jacopods/onedrive+https://utoronto-my.sharepoint.com/:w:/r/personal/jacopo_desimoi_utoronto_ca/Documents+' -e's+ +%20+g' -e 's+$+?web=1+') + } + #+end_src *** color helpers :daily: #+begin_src sh function lunarized-pick()